From e0f41433c6e64034a49fa29a99c3593bb2423ea7 Mon Sep 17 00:00:00 2001 From: lsndr Date: Fri, 8 Sep 2023 22:53:38 +0400 Subject: [PATCH] ci: run tests on push --- .github/workflows/build-and-test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 75c2f87..6f2129d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -3,13 +3,31 @@ name: Build & Test on: pull_request: branches: [master, next, "*.x", beta, alpha] + push: + branches: [master, next, "*.x", beta, alpha] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: + update-dependencies-cache: + if: ${{ github.event_name == 'push' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install Node.js ${{ matrix.node }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + cache: 'npm' + + - name: Install Dependencies + run: npm ci + test: + if: ${{ github.event_name != 'push' }} runs-on: ubuntu-latest strategy: fail-fast: false