1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-01 04:50:27 +02:00

change ci workflow to use a matrix

This commit is contained in:
Ian Storm Taylor
2021-04-01 02:18:37 -04:00
parent 8dfecd7759
commit f098864572

View File

@@ -7,6 +7,13 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
command:
- 'test'
- 'lint:eslint'
- 'lint:prettier'
- 'lint:typescript'
steps:
- name: Checkout repo
uses: actions/checkout@v2
@@ -16,22 +23,7 @@ jobs:
with:
node-version: 12
- name: Run tests
run: yarn && yarn build:rollup && yarn test
env:
CI: true
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 12
- name: Run linters
run: yarn && yarn build:rollup && yarn lint
- name: Run ${{ matrix.command }}
run: yarn && yarn build:rollup && yarn ${{ matrix.command }}
env:
CI: true