Add yarn matrix (#70)

This commit is contained in:
Jaco Greeff
2020-03-16 15:31:06 +01:00
committed by GitHub
parent b56924a5b3
commit 3ef1b2073f
6 changed files with 26 additions and 36 deletions
+7 -32
View File
@@ -2,43 +2,18 @@ name: PR
on: [pull_request]
jobs:
lint:
name: Linting
pr:
strategy:
matrix:
step: ['lint', 'test', 'build']
name: ${{ matrix.step }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: lint
- name: ${{ matrix.step }}
run: |
yarn install --immutable | grep -v 'YN0013'
yarn lint
test:
name: Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: test
run: |
rustup toolchain install nightly
yarn install --immutable | grep -v 'YN0013'
yarn test
build_code:
name: Build Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: build
run: |
rustup toolchain install nightly
yarn install --immutable | grep -v 'YN0013'
yarn build
yarn ${{ matrix.step }}