-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 1.03 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
name: K8s CI
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
jobs:
k8s-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v11
with:
kvm: true
- uses: DeterminateSystems/magic-nix-cache-action@v6
- name: Pre-populate nix-shell
run: |
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r)
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV
nix-shell shell.nix --run "echo"
- name: Go checks
run: |
nix-shell shell.nix --run "./scripts/go-checks.sh"
- name: BootStrap k8s cluster
run: |
nix-shell shell.nix --run "./scripts/k8s/deployer.sh start --workers 1 --zfs --lvm"
- name: E2E smoke test
run: |
nix-shell shell.nix --run "./scripts/e2e-test.sh --testplan selfci"
- name: Setup tmate session
if: ${{ failure() }}
timeout-minutes: 10
uses: mxschmitt/action-tmate@v3