colmena/.github/workflows/linters.yml

38 lines
794 B
YAML
Raw Normal View History

2022-06-24 17:34:37 -07:00
name: Linters
on:
pull_request:
push:
jobs:
2022-08-16 20:15:43 -06:00
linters:
name: Linters
runs-on: ubuntu-latest
2022-07-17 14:42:34 -07:00
strategy:
matrix:
nix:
2023-01-27 23:44:41 -07:00
- version: 2.13.2
url: https://releases.nixos.org/nix/nix-2.13.2/install
2022-07-17 14:42:34 -07:00
steps:
- uses: actions/checkout@v3.3.0
2022-08-16 20:15:43 -06:00
- name: Install Nix
uses: zhaofengli/nix-installer-action@zhaofeng
- name: Enable binary cache
uses: cachix/cachix-action@v12
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"