repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GitHub actions: do not run action twice on PRs.
[e-mobility-charging-stations-simulator.git]
/
.github
/
workflows
/
lint.yml
diff --git
a/.github/workflows/lint.yml
b/.github/workflows/lint.yml
index 62dc754fb6f7095c45a161e36b240ade3b9796e5..879fe8c5d86eeff6ed4c93067140962b5e265fa0 100644
(file)
--- a/
.github/workflows/lint.yml
+++ b/
.github/workflows/lint.yml
@@
-1,9
+1,17
@@
name: Lint CI
name: Lint CI
-on: [pull_request, push]
+on:
+ push:
+ branches-ignore:
+ - master
+ pull_request:
+ branches:
+ - master
jobs:
lint:
jobs:
lint:
+ env:
+ CI: true
runs-on: ubuntu-latest
runs-on: ubuntu-latest
@@
-17,9
+25,7
@@
jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- - name: npm install and run lint
- run: |
- npm ci
- npm run lint
- env:
- CI: true
+ - name: npm install
+ run: npm ci
+ - name: npm run lint
+ run: npm run lint