Skip to content

Commit

Permalink
bump nix ci version
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Nov 7, 2024
1 parent 30f137c commit a017b76
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 17 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: eneoli/flakeshot@v1
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check formatting
if: github.event.pull_request.head.repo.full_name != github.repository
run: cargo fmt --check --verbose
Expand All @@ -46,30 +51,50 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: eneoli/flakeshot@v1
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check for build errors
run: cargo check --verbose

clippy:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: eneoli/flakeshot@v1
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check best practices (Clippy)
run: cargo clippy --verbose -- -Dwarnings

tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: eneoli/flakeshot@v1
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Running tests
run: cargo test --verbose

unused-deps:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: eneoli/flakeshot@v1
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check for unused dependencies
run: cargo udeps
12 changes: 0 additions & 12 deletions action.yml

This file was deleted.

0 comments on commit a017b76

Please sign in to comment.