2020-06-21 15:22:33 +02:00
|
|
|
name: "Test"
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
2023-09-19 07:29:42 +02:00
|
|
|
branches:
|
|
|
|
- master
|
2020-06-21 15:22:33 +02:00
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
2024-06-21 23:26:44 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-06-23 13:59:30 +02:00
|
|
|
# when updating channels, also update .mergify.yml
|
2024-06-21 23:26:44 +02:00
|
|
|
channel: [ nixos-unstable, nixos-24.05 ]
|
2020-06-21 15:22:33 +02:00
|
|
|
steps:
|
2023-09-11 04:22:39 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-05-20 04:38:05 +02:00
|
|
|
- uses: cachix/install-nix-action@V27
|
2020-11-26 08:34:03 +01:00
|
|
|
with:
|
2024-06-21 23:26:44 +02:00
|
|
|
nix_path: nixpkgs=channel:${{ matrix.channel }}
|
2020-06-21 15:22:33 +02:00
|
|
|
- name: Show nixpkgs version
|
|
|
|
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
|
|
|
- run: ./tests/run.py
|