mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 01:06:37 +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:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
command:
|
||||||
|
- 'test'
|
||||||
|
- 'lint:eslint'
|
||||||
|
- 'lint:prettier'
|
||||||
|
- 'lint:typescript'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -16,22 +23,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run ${{ matrix.command }}
|
||||||
run: yarn && yarn build:rollup && yarn test
|
run: yarn && yarn build:rollup && yarn ${{ matrix.command }}
|
||||||
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
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
Reference in New Issue
Block a user