e2e tests #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |