Skip to content

Commit

Permalink
ci: don't run non-caching jobs on main
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Dec 11, 2024
1 parent 9569759 commit 13517b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ defaults:
jobs:
check:
name: Check
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -32,6 +33,7 @@ jobs:

clippy:
name: Clippy
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -41,6 +43,7 @@ jobs:

format:
name: Format
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -50,13 +53,15 @@ jobs:

typos:
name: Typos
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master

doc:
name: Doc
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -65,6 +70,7 @@ jobs:

build:
name: Build
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -76,6 +82,7 @@ jobs:
test:
name: Test
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 13517b7

Please sign in to comment.