2022-06-24 17:34:37 -07:00
|
|
|
name: Linters
|
2022-01-08 01:20:36 -08:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
jobs:
|
2022-08-16 20:15:43 -06:00
|
|
|
linters:
|
|
|
|
name: Linters
|
|
|
|
|
2022-01-08 01:20:36 -08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-01-27 23:44:41 -07:00
|
|
|
- uses: actions/checkout@v3.3.0
|
2022-08-16 20:15:43 -06:00
|
|
|
|
2023-01-27 23:44:41 -07:00
|
|
|
- name: Install Nix
|
2023-10-18 15:41:54 -06:00
|
|
|
uses: DeterminateSystems/nix-installer-action@9b252454a8d70586c4ee7f163bf4bb1e9de3d763 # v2
|
2022-01-08 01:20:36 -08:00
|
|
|
|
2023-01-27 23:44:41 -07:00
|
|
|
- name: Enable binary cache
|
|
|
|
uses: cachix/cachix-action@v12
|
2022-01-08 01:20:36 -08:00
|
|
|
with:
|
|
|
|
name: colmena
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
|
2022-06-24 17:34:37 -07:00
|
|
|
- name: Check EditorConfig
|
|
|
|
run: nix-shell --run "editorconfig-checker"
|
|
|
|
|
|
|
|
- name: Check flake8
|
|
|
|
run: nix-shell --run "flake8 manual/preprocess.py"
|
2022-07-29 22:13:09 -07:00
|
|
|
|
|
|
|
- name: Check rustfmt
|
|
|
|
run: nix-shell --run "cargo fmt --check"
|