From 616c44240a1478e54d8b7bc79ed8fa5db6392d11 Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Tue, 3 May 2022 12:55:43 +0200 Subject: [PATCH] Simplify CI config --- .github/workflows/test.yml | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 325ebfaca..622ff0d1a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,29 +52,14 @@ jobs: run: pnpm unit env: FORCE_COLOR: 2 - old12: + old: runs-on: ubuntu-latest - name: Node.js 12 Quick - steps: - - name: Checkout the repository - uses: actions/checkout@v3 - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: "^6.0.0" - - name: Install Node.js 10 - uses: actions/setup-node@v3 - with: - node-version: 12 - - name: Install dependencies - run: pnpm install --frozen-lockfile --ignore-scripts - - name: Run unit tests - run: pnpm unit - env: - FORCE_COLOR: 2 - old10: - runs-on: ubuntu-latest - name: Node.js 10 Quick + strategy: + matrix: + node-version: + - 12 + - 10 + name: Node.js ${{ matrix.node-version }} Quick steps: - name: Checkout the repository uses: actions/checkout@v3 @@ -84,10 +69,10 @@ jobs: version: 3 env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true - - name: Install Node.js 10 + - name: Install Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: - node-version: 10 + node-version: ${{ matrix.node-version }} - name: Install dependencies run: pnpm install --frozen-lockfile --ignore-scripts - name: Run unit tests