mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-12-02 08:03:59 +03:00
93c5f4da4a
Since this flake-compat there is no value in testing different nixpkgs versions.
26 lines
733 B
YAML
26 lines
733 B
YAML
name: "Test"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, macos-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
# Nix Flakes doesn't work on shallow clones
|
|
fetch-depth: 0
|
|
- uses: cachix/install-nix-action@v13
|
|
with:
|
|
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210415_76980a1/install
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
system-features = nixos-test benchmark big-parallel kvm
|
|
- name: List flake structure
|
|
run: nix flake show
|
|
- name: Run unit tests (flake)
|
|
run: nix build -L
|