Skip to content

Fix bootstrap config conversion (#122) #4

Fix bootstrap config conversion (#122)

Fix bootstrap config conversion (#122) #4

Workflow file for this run

name: End to End Tests (Strict)
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checking out repo
uses: actions/checkout@v4
- name: Install lxd
run: |
sudo lxd init --auto
sudo usermod --append --groups lxd $USER
sg lxd -c 'lxc version'
- name: Install snapcraft
run: |
sudo snap install snapcraft --classic
- name: Apply strict patch
run: |
git checkout -b autoupdate/strict
git config --global user.email [email protected]
git config --global user.name k8s-bot
git am ./build-scripts/patches/strict/*.patch
- name: Build snap
run: |
sg lxd -c 'snapcraft --use-lxd'
mv k8s_*.snap k8s-strict.snap
- name: Uploading snap
uses: actions/upload-artifact@v3
with:
name: k8s-strict.snap
path: k8s-strict.snap
test-e2e:
name: Test ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu:20.04"]
runs-on: ubuntu-20.04
needs: build
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install tox
run: pip install tox
- name: Install lxd
run: |
sudo snap refresh lxd --channel 5.19/stable
sudo lxd init --auto
sudo usermod --append --groups lxd $USER
sg lxd -c 'lxc version'
- name: Download snap
uses: actions/[email protected]
with:
name: k8s-strict.snap
path: build
- name: Run end to end tests
run: |
export TEST_SNAP="$PWD/build/k8s-strict.snap"
export TEST_SUBSTRATE=lxd
export TEST_LXD_IMAGE=${{ matrix.os }}
cd tests/e2e && sg lxd -c 'tox -e e2e'