Skip to content

Commit 0affadc

Browse files
author
Robert Jackson
authored
Add basic GitHub Actions setup (#41)
1 parent 80b9060 commit 0affadc

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [10.x, 12.x, 14.x]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: volta-cli/action@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: yarn install --frozen-lockfile
24+
- run: yarn lint:js
25+
- run: yarn test

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,9 @@
5555
"release": true,
5656
"tokenRef": "GITHUB_AUTH"
5757
}
58+
},
59+
"volta": {
60+
"node": "12.21.0",
61+
"yarn": "1.22.10"
5862
}
5963
}

0 commit comments

Comments
 (0)