From c493c6d427cf8336cf71e227647a40f9699e8564 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Wed, 15 May 2024 16:26:11 -0700 Subject: [PATCH] github actions: run test jobs on pull requests 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. --- .github/workflows/audit.yaml | 4 ++-- .github/workflows/lint.yaml | 5 +++-- .github/workflows/tests.yaml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index bb6aa73..5b31148 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -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 diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 56a1db9..6223ccf 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ee7ed90..d27a82c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,7 +5,7 @@ on: branches: - main - speedreader - pull_request: + pull_request: jobs: test: