Skip to content

Commit

Permalink
.github/workflows/tests: Run system tests on Canonical runners
Browse files Browse the repository at this point in the history
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
  • Loading branch information
masnax committed Sep 13, 2023
1 parent 052c67e commit 25f4cec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ jobs:

system-tests:
name: System tests
runs-on: ubuntu-22.04
runs-on: [self-hosted, linux, X64, two-xlarge, jammy]
env:
SNAPCRAFT_BUILD_ENVIRONMENT: "lxd"
SKIP_SETUP_LOGS: 0
CONCURRENT_SETUP: 1
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -58,15 +60,15 @@ jobs:
sudo lxd init --auto
sudo snap install snapcraft --classic
snap list
sudo apt-get update
sudo apt-get install -y gettext sqlite3
- name: Build snaps
run: snapcraft

- name: Run system tests
run: |
set -eux
sudo snap install --dangerous microcloud_*.snap
MICROCLOUD_SNAP_PATH=$(printf "%s/%s" $(pwd) microcloud_*.snap) make -C microcloud check-system
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 25f4cec

Please sign in to comment.