2022-06-25 02:34:37 +02:00
|
|
|
name: Linters
|
2022-01-08 10:20:36 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
jobs:
|
2022-08-17 04:15:43 +02:00
|
|
|
linters:
|
|
|
|
name: Linters
|
|
|
|
|
2022-01-08 10:20:36 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-11-08 02:08:00 +01:00
|
|
|
- uses: actions/checkout@v4.2.2
|
2022-08-17 04:15:43 +02:00
|
|
|
|
2023-01-28 07:44:41 +01:00
|
|
|
- name: Install Nix
|
2024-11-08 01:42:22 +01:00
|
|
|
uses: DeterminateSystems/nix-installer-action@b92f66560d6f97d6576405a7bae901ab57e72b6a # v15
|
2022-01-08 10:20:36 +01:00
|
|
|
|
2023-01-28 07:44:41 +01:00
|
|
|
- name: Enable binary cache
|
2024-11-08 02:08:05 +01:00
|
|
|
uses: cachix/cachix-action@v15
|
2022-01-08 10:20:36 +01:00
|
|
|
with:
|
|
|
|
name: colmena
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
|
2022-06-25 02:34:37 +02:00
|
|
|
- name: Check EditorConfig
|
|
|
|
run: nix-shell --run "editorconfig-checker"
|
|
|
|
|
|
|
|
- name: Check flake8
|
|
|
|
run: nix-shell --run "flake8 manual/preprocess.py"
|
2022-07-30 07:13:09 +02:00
|
|
|
|
|
|
|
- name: Check rustfmt
|
|
|
|
run: nix-shell --run "cargo fmt --check"
|