diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a422767..92b21e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,23 +1,14 @@ name: Test + on: push: - branches: [ main ] + branches: + - main pull_request: - branches: [ main ] jobs: test: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [10.x, 12.x, 14.x, 16.x, 17.x] - os: [ubuntu-latest, windows-latest] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: npm install and test - run: npm it + uses: pkgjs/action/.github/workflows/node-test.yaml@v0 + with: + runs-on: ubuntu-latest, windows-latest + upgrade-policy: all