Skip to content

Commit 3152ddc

Browse files
committed
Configure workflows for cidev branch isolation
- test-nixos.yaml: Only runs on cidev branch, adds nix test command before upterm - ci.yaml: Excludes cidev branch to prevent normal CI from running there The cidev branch is used for isolated NixOS test development without affecting the main CI pipeline.
1 parent 490ebd3 commit 3152ddc

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- '*'
8+
- '!cidev'
89
tags:
910
- 'v*'
1011
workflow_dispatch:

.github/workflows/test-nixos.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
on:
44
push:
55
branches:
6-
- '*'
7-
pull_request:
6+
- cidev
87
workflow_dispatch:
98

109
env:
@@ -38,5 +37,8 @@ jobs:
3837
echo "${{ secrets.NIXBUILD_KEY }}" | install -D -m 600 /dev/stdin ~/.ssh/nixbuild_key
3938
install -m 644 "${{ github.workspace }}/.github/assets/ssh-config" ~/.ssh/config
4039
40+
- name: Run nixos test
41+
run: nix run --file . nixosTests.containerd.driverInteractive -- --no-interactive
42+
4143
- name: Setup upterm session
4244
uses: owenthereal/action-upterm@v1

0 commit comments

Comments
 (0)