From cd5c4f9297e1c9fc2bd89119c19e11892bf8b859 Mon Sep 17 00:00:00 2001 From: Raz Luvaton <16746759+rluvaton@users.noreply.github.com> Date: Sun, 24 Sep 2023 00:50:54 +0300 Subject: [PATCH] chore: moved to prepare-node-test-matrix --- .github/workflows/nodejs.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 56f128df..35b8e0f0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -22,23 +22,13 @@ jobs: run: npm run lint test: - name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }} + name: Test on Node.js + uses: pkgjs/action/.github/workflows/node-test.yaml@v0 + with: + runs-on: ubuntu-latest, macos-latest + test-command: npm run coverage:ci + post-test-steps: | + - name: Upload coverage report to Codecov + uses: codecov/codecov-action@v3 strategy: fail-fast: false - matrix: - node-version: [18.x, 20.x] - os: [ubuntu-latest, macOS-latest, windows-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - check-latest: true - - name: Install dependencies - run: npm install - - name: Run tests - run: npm run coverage:ci - - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v3