-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (52 loc) · 1.63 KB
/
validate.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: validate
on:
push:
branches: [main]
pull_request:
branches: '**'
jobs:
validate:
runs-on: ubuntu-latest
outputs:
drvpath: ${{ steps.test-derivation.outputs.drvpath }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
nix_path: nixpkgs=channel:nixos-23.11
- name: build
run: NIXPKGS_ALLOW_UNFREE=1 nix build --impure
- name: check flake (runs tests)
run: NIXPKGS_ALLOW_UNFREE=1 nix flake check --impure --log-format internal-json
timeout-minutes: 15
env:
CI: "true"
- name: get test derivation path
id: test-derivation
if: always()
run: |
drvpath=$(ls -d /nix/store/*-vm-test-run-kolide-launcher)
echo "drvpath=${drvpath}" >> "$GITHUB_OUTPUT"
- name: upload test screenshots
uses: actions/upload-artifact@v4
if: always()
with:
name: test-screenshots
path: ${{ steps.test-derivation.outputs.drvpath }}/test-*.png
retention-days: 1
- name: upload test flare
uses: actions/upload-artifact@v4
if: always()
with:
name: test-flare
path: ${{ steps.test-derivation.outputs.drvpath }}/kolide_agent_flare_report_*.zip
retention-days: 1
- name: show flake output attributes
run: nix flake show --impure
- name: show flake metadata
run: nix flake metadata
- name: launcher version
run: ./result/bin/launcher version
- name: osqueryd version
run: ./result/bin/osqueryd --version