-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (81 loc) · 2.78 KB
/
e2e-test.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: e2e tests
on:
schedule: ## Schedule the job to run at 12. am daily
- cron: '0 0 * * *'
jobs:
lint:
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"
lvm:
needs: ['lint']
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: BootStrap k8s cluster
run: |
nix-shell shell.nix --run "./scripts/k8s/deployer.sh start --workers 1 --lvm"
- name: Lvm e2e test
run: |
nix-shell shell.nix --run "./scripts/e2e-test.sh --testplan lvm"
zfs:
needs: ['lint']
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: BootStrap k8s cluster
run: |
nix-shell shell.nix --run "./scripts/k8s/deployer.sh start --workers 1 --zfs"
- name: Zfs e2e test
run: |
nix-shell shell.nix --run "./scripts/e2e-test.sh --testplan zfs"
hostpath:
needs: ['lint']
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: BootStrap k8s cluster
run: |
nix-shell shell.nix --run "./scripts/k8s/deployer.sh start --workers 1"
- name: Hostpath e2e test
run: |
nix-shell shell.nix --run "./scripts/e2e-test.sh --testplan hostpath"