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
|
|
|
|
|
2022-07-17 14:42:34 -07:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
nix:
|
2022-08-16 20:15:43 -06:00
|
|
|
- version: 2.10.3
|
2022-07-17 14:42:34 -07:00
|
|
|
url: https://releases.nixos.org/nix/nix-2.10.3/install
|
|
|
|
|
2022-01-08 01:20:36 -08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.4
|
2022-08-16 20:15:43 -06:00
|
|
|
|
2022-07-17 14:42:34 -07:00
|
|
|
- uses: cachix/install-nix-action@v17
|
|
|
|
with:
|
|
|
|
install_url: ${{ matrix.nix.url }}
|
|
|
|
extra_nix_config: |
|
|
|
|
experimental-features = nix-command flakes
|
2022-01-08 01:20:36 -08:00
|
|
|
|
|
|
|
- name: Enable binary cache (optional)
|
|
|
|
uses: cachix/cachix-action@v10
|
|
|
|
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"
|