diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 24a17a4..7bbca3c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,15 +1,24 @@ name: Test Changes -on: [push, pull_request] +on: + pull_request: + push: + branches: + - main + +# cancel old edit events being processed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: test: runs-on: ubuntu-latest steps: - name: Clone Repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node version - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: 20.x - name: Install dependencies