diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62d9044..8614ada 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,19 +2,24 @@ name: test on: pull_request: + push: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js environment - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: # Use the same Node.js version as specified in your .nvmrc file node-version-file: '.nvmrc'