Skip to content

Commit

Permalink
Add CI workflow (#190)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
declan-warn committed May 27, 2021
1 parent 5896531 commit eac0346
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Run linting and tests when pushing to master or targeting master in pull requests

name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: sudo yarn global add bolt
- run: bolt --frozen-lockfile
- run: bolt lint
- run: bolt test
env:
CI: true

0 comments on commit eac0346

Please sign in to comment.