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:
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user