chore: add github action to run lvm tests #6
Workflow file for this run
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: | |
pull_request: | |
types: ['opened', 'edited', 'reopened', 'synchronize'] | |
# Since the on property is required, using the workflow_dispatch event, | |
# which allows you to manually trigger the workflow from the GitHub Actions interface. | |
# on: | |
# workflow_dispatch: | |
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 --zfs --lvm" | |
- name: Lvm e2e test | |
run: | | |
nix-shell shell.nix --run "./scripts/e2e-test.sh --testplan lvm" |