-
-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (39 loc) · 1.1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "Test"
on:
pull_request:
push:
schedule:
# every sunday morning
- cron: "0 0 * * 0"
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- run: nix build .#ci --print-build-logs
- name: validate core CLI demo
run: nix-shell --run ./demo
- name: validate new CLI demo
run: nix develop --command ./demo
- name: validate quick-and-dirty flake CLI
run: nix run .#resholve-with-packages -- tests/parse_sed.sh gnused
cross-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
# DOING: figure out how to run the equivalent of this with the development resholve we're using here
- run: nix flake check --print-build-logs