fix: run unit tests on branch commits, skip main branch
Release / build-and-test (push) Has been cancelled
Release / build-and-test (push) Has been cancelled
This commit is contained in:
@@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
|
- '!main' # Skip main branch (release workflow handles that)
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@@ -29,7 +30,7 @@ jobs:
|
|||||||
run: npm run test:run
|
run: npm run test:run
|
||||||
|
|
||||||
# Acceptance tests that don't require DB read/write
|
# Acceptance tests that don't require DB read/write
|
||||||
# These are safe to run on every commit
|
# Only run on pull requests to main
|
||||||
safe-acceptance-tests:
|
safe-acceptance-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: unit-tests
|
needs: unit-tests
|
||||||
|
|||||||
Reference in New Issue
Block a user