Skip to content

Commit eac0346

Browse files
authored
Add CI workflow (#190)
* Add CI workflow Github action to replace Travis CI * Try adding sudo actions/setup-node#85 (comment) indicates sudo might help here * Remove comments + rename file * Add comment to top of file
1 parent 5896531 commit eac0346

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Run linting and tests when pushing to master or targeting master in pull requests
2+
3+
name: Test
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [14.x]
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: sudo yarn global add bolt
27+
- run: bolt --frozen-lockfile
28+
- run: bolt lint
29+
- run: bolt test
30+
env:
31+
CI: true

0 commit comments

Comments
 (0)