From f09886457292e7ed950a3758d936255150cb68c5 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Thu, 1 Apr 2021 02:18:37 -0400 Subject: [PATCH] change ci workflow to use a matrix --- .github/workflows/ci.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 424b0a2bf..2732c7864 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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