Skip to content

Commit 527d06b

Browse files
authored
Merge pull request #44 from stacktracejs/ew/gh-action
Polish GitHub action for CI
2 parents 5611376 + 14ae5f5 commit 527d06b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Continuous Integration
2-
on:
3-
push:
4-
branches: [ $default-branch ]
5-
pull_request:
6-
branches: [ $default-branch ]
2+
on: [push]
73

84
jobs:
95
tests:
@@ -26,15 +22,17 @@ jobs:
2622
uses: actions/checkout@v2
2723
- uses: actions/setup-node@v2
2824
with:
29-
node-version: '16'
25+
node-version: 16
3026
- name: Cache dependencies
3127
uses: actions/cache@v2
3228
with:
3329
path: ~/.npm
3430
key: npm-${{ hashFiles('package-lock.json') }}
3531
restore-keys: npm-
32+
- name: Install packages
33+
run: npm ci
3634
- name: Lint code
37-
run: npm run lint
35+
run: npm run lint
3836
- name: Run browser tests in Saucelabs
3937
run: npm run test-ci
4038
timeout-minutes: 5

0 commit comments

Comments
 (0)