Skip to content

Commit

Permalink
github actions: run test jobs on pull requests
Browse files Browse the repository at this point in the history
Passing just `pull_request` as a trigger should run for
any target branch, but the indent was incorrect, hiding
the trigger from the test runner. Go back to running
on push for both supported branches, and for all pull
requests.
  • Loading branch information
rillian committed May 15, 2024
1 parent 3de4cbe commit c493c6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Security audit

on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
pull_request:
branches:
main
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
- cron: '21 20 2 * *'

jobs:
audit:
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Lint

on:
push:
branches:
- main
- speedreader
pull_request:
branches:
main
schedule:
- cron: '28 20 2 * *'

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
- speedreader
pull_request:
pull_request:

jobs:
test:
Expand Down

0 comments on commit c493c6d

Please sign in to comment.