diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a42e5307..e56a0b71c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,27 +8,7 @@ name: Test - opened - synchronize jobs: - test_matrix: - runs-on: ubuntu-latest - strategy: - matrix: - node_version: - - 18 - - 20 - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node_version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node_version }} - cache: npm - - run: npm ci - - run: npm test test: - runs-on: ubuntu-latest - needs: test_matrix - steps: - - run: exit 1 - if: ${{ needs.test_matrix.result != 'success' }} - - run: echo ok - if: ${{ always() }} + uses: oscard0m/.github-octokit/.github/workflows/test.yml@add-shared-action + with: + node_versions: '[18,20]'