Skip to content

Commit

Permalink
ci: run tests on push (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsndr authored Sep 8, 2023
1 parent 14e1678 commit c1eec13
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1eec13

Please sign in to comment.