infrastructure/.forgejo/workflows/lint.yml

21 lines
475 B
YAML
Raw Normal View History

2023-05-27 10:43:58 +02:00
name: Lint
2023-09-09 10:55:05 +02:00
on: [push]
2023-05-27 10:43:58 +02:00
jobs:
lint:
2023-09-09 10:55:05 +02:00
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:js-20.04
2023-05-27 10:43:58 +02:00
steps:
- uses: actions/checkout@v3
2023-09-09 10:55:05 +02:00
- uses: https://github.com/cachix/install-nix-action@v20
env:
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: |
nix profile install 'nixpkgs#deadnix' 'nixpkgs#statix' 'nixpkgs#yamllint'
statix check .
deadnix -f
yamllint .