-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.18 KB
/
checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: 'Checks'
on:
pull_request:
workflow_dispatch:
push:
branches: ['main']
defaults:
run:
shell: devenv shell bash -- -e {0}
env:
ACTIONS_RUNNER_DEBUG: true
jobs:
checks:
# purposely disabled for now
if: false
runs-on: ['ubuntu-latest']
steps:
- name: 'Checkout Code'
uses: actions/checkout@v4
- name: 'Install Nix'
uses: cachix/install-nix-action@master
- name: 'Setup Cachix'
uses: cachix/cachix-action@master
with:
name: devenv
- name: 'Install devenv.sh'
run: nix profile install nixpkgs#devenv
- name: 'Format'
run: |
taplo fmt *.toml
nixfmt *.nix --width=100
biome format . --write
cargo fmt --all -- --config-path=rustfmt.toml
- name: 'Lint'
run: |
taplo lint *.toml
biome lint . --write
cargo clippy --all-targets --all-features -- -A clippy::pedantic
deadnix --no-lambda-pattern-names && statix check .
- name: 'Build'
run: |
nix build
cargo build --all-targets --all-features
cargo test --all-targets --all-features