Nix CI (#176)
Co-authored-by: Victor <victor@xirion.net> Reviewed-on: #176
This commit is contained in:
parent
8288611ef9
commit
1403a1b2c0
3 changed files with 29 additions and 21 deletions
20
.forgejo/workflows/nix.yml
Normal file
20
.forgejo/workflows/nix.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Nix
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: docker
|
||||
env:
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:js-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: https://github.com/cachix/install-nix-action@v20
|
||||
env:
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- name: Run `nix flake check`
|
||||
run: |
|
||||
sed -i '/^access-tokens/ d' /etc/nix/nix.conf
|
||||
nix run '.#' -- -V
|
|
@ -1,12 +0,0 @@
|
|||
name: Testing
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: ls -l
|
||||
- run: uname -a
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue