forked from DGNum/colmena
e5c30066c2
Sadly it breaks CI in fork-originated PRs if the author doesn't enable
Actions on the fork itself.
This reverts commit ce1aa41ff4
.
31 lines
703 B
YAML
31 lines
703 B
YAML
name: Linters
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
jobs:
|
|
linters:
|
|
name: Linters
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4.2.2
|
|
|
|
- name: Install Nix
|
|
uses: DeterminateSystems/nix-installer-action@b92f66560d6f97d6576405a7bae901ab57e72b6a # v15
|
|
|
|
- name: Enable binary cache
|
|
uses: cachix/cachix-action@v15
|
|
with:
|
|
name: colmena
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- name: Check EditorConfig
|
|
run: nix-shell --run "editorconfig-checker"
|
|
|
|
- name: Check flake8
|
|
run: nix-shell --run "flake8 manual/preprocess.py"
|
|
|
|
- name: Check rustfmt
|
|
run: nix-shell --run "cargo fmt --check"
|