-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (45 loc) · 1.7 KB
/
checks.yaml
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
name: "CI"
on:
push:
branches:
- main
- trying
- staging
schedule:
- cron: "0 0 * * SUN" # every sunday
jobs:
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v18
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
extra_nix_config: |
experimental-features = nix-command flakes
system-features = nixos-test benchmark big-parallel kvm recursive-nix
extra-substituters = https://zeek.cachix.org
extra-trusted-public-keys = zeek.cachix.org-1:Jv0hB/P5eF7RQUZgSQiVqzqzgweP29YIwpSiukGlDWQ=
- name: Run Nvfetcher Updates
run: nix -Lv develop -c nvfetcher-update ./nix/sources.toml
- name: Check Spicy2nix Latest Rev
run: nix flake lock --update-input spicy2nix
- name: Build Zeek Release
run: nix -Lv build ./#zeek-release
- name: Check Zeek Plugins
run: nix -Lv run .#zeek-release -- -N
- name: Check Zeek Release Version
run: nix -Lv run .#zeek-release -- --version
- name: Check Spicy
run: nix develop -c nix -Lv run .#x86_64-linux.zeek.entrypoints.spicyCheck
- name: Check Zeek Systemd stand-alone module
run: nix -Lv build ./#zeek-standalone-vm-systemd
# - name: Check Zeek Systemd Cluster module
# run: nix -Lv build ./#zeek-cluster-vm-systemd
- name: Commit changes
if: ${{ env.COMMIT_MSG != null }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: ${{ env.COMMIT_MSG }}