colmena/.github/workflows/linters.yml

32 lines
702 B
YAML
Raw Normal View History

2022-06-25 02:34:37 +02:00
name: Linters
on:
pull_request:
push:
jobs:
2022-08-17 04:15:43 +02:00
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
2022-08-17 04:15:43 +02:00
- name: Install Nix
2023-10-18 23:41:54 +02:00
uses: DeterminateSystems/nix-installer-action@9b252454a8d70586c4ee7f163bf4bb1e9de3d763 # v2
- name: Enable binary cache
uses: cachix/cachix-action@v12
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"