Add github workflows

This commit is contained in:
Ethan Lane 2021-08-20 16:06:59 +01:00
parent 1b036609a9
commit 8ee5c62481
2 changed files with 56 additions and 0 deletions

28
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Lint
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop, feature/** ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.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 }}
cache: 'npm'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn run lint

28
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Test
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop, feature/** ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.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 }}
cache: 'npm'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test