fix ci (#200)
Reviewed-on: #200 Co-authored-by: Victor <victor@xirion.net> Co-committed-by: Victor <victor@xirion.net>
This commit is contained in:
parent
ea08de41c6
commit
6bb6d4ae91
6 changed files with 29 additions and 9 deletions
|
@ -4,9 +4,19 @@ on: [push]
|
|||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: native
|
||||
runs-on: docker
|
||||
env:
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:js-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: statix check .
|
||||
- run: deadnix -f
|
||||
- run: yamllint .
|
||||
- uses: https://github.com/cachix/install-nix-action@v22
|
||||
env:
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- run: |
|
||||
sed -i '/^access-tokens/ d' /etc/nix/nix.conf
|
||||
nix profile install 'nixpkgs#deadnix' 'nixpkgs#statix' 'nixpkgs#yamllint'
|
||||
statix check .
|
||||
deadnix -f
|
||||
yamllint .
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
name: Nix
|
||||
|
||||
# on: [push]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: docker
|
||||
|
@ -8,7 +10,7 @@ jobs:
|
|||
image: ghcr.io/catthehacker/ubuntu:js-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: https://github.com/cachix/install-nix-action@v20
|
||||
- uses: https://github.com/cachix/install-nix-action@v22
|
||||
env:
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
|
|
@ -10,9 +10,14 @@ on:
|
|||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: native
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:js-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: https://github.com/cachix/install-nix-action@v22
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- env:
|
||||
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
|
||||
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue