File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1- name : Test and Build
1+ name : Test Suite
22
33on :
4- workflow_dispatch :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ # The branches below must be a subset of the branches above
8+ branches : [main]
59
610jobs :
711 test-and-build :
812 runs-on : ubuntu-latest
913 strategy :
1014 matrix :
11- node-version : [16.x, 14.x ]
15+ node-version : [16.x]
1216 steps :
1317 - name : Checkout code
1418 uses : actions/checkout@v2
1519 with :
16- ref : ${{ github.event.pull_request.head.sha }}
20+ ref : ${{ if github.event_name == 'pull_request' }}${{ github. event.pull_request.head.sha }}${{ else }}${{ github.ref }}${{ endif }}
1721 fetch-depth : 0
1822
1923 - name : Use Node.js ${{ matrix.node-version }}
2024 uses : actions/setup-node@v2
2125 with :
2226 node-version : ${{ matrix.node-version }}
2327
28+ - name : Linting
29+ run : npm run eslint
30+
2431 - name : Install dependencies
2532 run : npm install
2633
You can’t perform that action at this time.
0 commit comments