use forgejo actions lint job
This commit is contained in:
parent
28b604c585
commit
d05aa1c5d8
3 changed files with 15 additions and 23 deletions
12
.forgejo/workflows/lint.yml
Normal file
12
.forgejo/workflows/lint.yml
Normal 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 .
|
|
@ -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
|
|
|
@ -63,6 +63,9 @@ in {
|
||||||
gnused
|
gnused
|
||||||
jq
|
jq
|
||||||
nodejs
|
nodejs
|
||||||
|
statix
|
||||||
|
deadnix
|
||||||
|
yamllint
|
||||||
nixUnstable
|
nixUnstable
|
||||||
vault
|
vault
|
||||||
wget
|
wget
|
||||||
|
|
Loading…
Reference in a new issue