Skip to content

Commit

Permalink
feat: flake in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Nov 1, 2024
1 parent dc0bec2 commit 8407213
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
CARGO_TERM_COLOR: always

jobs:
self-care:
name: Flake self-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v7
with:
fail-mode: true

pre-commit-checks:
name: "Pre-commit checks: cargo fmt, typos"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v11
- name: Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v6
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Pre-commit checks
run: nix develop -i -L --command just check
22 changes: 0 additions & 22 deletions .github/workflows/prettier.yml

This file was deleted.

0 comments on commit 8407213

Please sign in to comment.