use forgejo actions lint job

This commit is contained in:
Vivian 2023-05-27 10:43:58 +02:00
parent 28b604c585
commit d05aa1c5d8
3 changed files with 15 additions and 23 deletions

View file

@ -0,0 +1,12 @@
name: Lint
on: [push]
jobs:
lint:
runs-on: native
steps:
- uses: actions/checkout@v3
- run: statix check .
- run: deadnix -f
- run: yamllint .

View file

@ -1,23 +0,0 @@
pipeline:
check:
image: nixos/nix:2.15.1
commands:
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- echo "store = unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt" >> /etc/nix/nix.conf
- nix run 'nixpkgs#statix' check .
- nix run 'nixpkgs#deadnix' -- -f
- nix run 'nixpkgs#yamllint' .
<<<<<<< HEAD
=======
volumes:
- /nix:/mnt/nix:ro
update_plex:
image: nixos/nix:2.15.1
commands:
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- echo "store = unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt" >> /etc/nix/nix.conf
- nix profile install 'nixpkgs#jq' 'nixpkgs#curl' 'nixpkgs#vault'
- ./nixos/pkgs/plex-pass/update.sh
>>>>>>> 9714ee2bd90ec358d58d02f7b492677b1b6a1c6a
volumes:
- /nix:/mnt/nix:ro

View file

@ -63,6 +63,9 @@ in {
gnused
jq
nodejs
statix
deadnix
yamllint
nixUnstable
vault
wget