From 716d261bc07f2e04d85ad72e8690452ba822fc69 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Sun, 13 Dec 2020 15:01:46 +0000 Subject: [PATCH] fix matrix --- .github/workflows/main.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a71bd801..ab9c9f50 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,17 @@ jobs: node-version: 12 - run: yarn - run: yarn lint + config: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 12 + - run: yarn + - run: node lib/Config/Defaults.js > expected-config.sample.yml + - run: cmp --silent config.sample.yml expected-config.sample.yml test: runs-on: ubuntu-latest strategy: @@ -31,18 +42,4 @@ jobs: with: node-version: ${{ matrix.node_version }} - run: yarn - - run: yarn test - config: - runs-on: ubuntu-latest - strategy: - matrix: - node_version: ['14', '12'] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: 12 - - run: yarn - - run: node lib/Config/Defaults.js > expected-config.sample.yml - - run: cmp --silent config.sample.yml expected-config.sample.yml + - run: yarn test \ No newline at end of file