Make workflow targets more specific (#87)
This ensures that: - Acceptance tests ar run on Pull requests - Lint is run on `main` - The workflows are executed only once on PRs
This commit is contained in:
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
@@ -1,4 +1,7 @@
|
|||||||
on: pull_request
|
on:
|
||||||
|
push:
|
||||||
|
branch: [main]
|
||||||
|
pull_request:
|
||||||
name: Lint
|
name: Lint
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -1,4 +1,7 @@
|
|||||||
on: push
|
on:
|
||||||
|
push:
|
||||||
|
branch: [main]
|
||||||
|
pull_request:
|
||||||
name: Run acceptance tests
|
name: Run acceptance tests
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Reference in New Issue
Block a user