diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 647f217..8c1b3f7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,6 +1,12 @@ name: Tests -on: [push] +on: + push: + branches: + - 'main' + pull_request: + branches: + - '**' jobs: build: @@ -9,12 +15,12 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm i --force