Skip to content

Commit

Permalink
Make ci great again
Browse files Browse the repository at this point in the history
  • Loading branch information
mara-schulke committed Nov 24, 2023
1 parent 9dbc0b7 commit 2ea2f18
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Book
on:
push:
branches: ["main"]
workflow_dispatch:
paths:
- 'docs/**'

permissions:
contents: read
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ name: CI
on:
push:
branches: ["main"]
paths:
- 'Cargo.lock'
- 'Cargo.toml'
- 'deny.toml'
- 'src/**'
pull_request:
paths:
- 'Cargo.lock'
- 'Cargo.toml'
- 'deny.toml'
- 'src/**'

env:
MINIMUM_LINE_COVERAGE_PERCENT: 35
Expand Down Expand Up @@ -64,10 +74,3 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: cargo install typos-cli || true
- run: typos
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check
21 changes: 21 additions & 0 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Nix Flake

on:
push:
branches: ["main"]
paths:
- 'flake.nix'
- 'flake.lock'
pull_request:
paths:
- 'flake.nix'

jobs:
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check
- 'flake.lock'

0 comments on commit 2ea2f18

Please sign in to comment.