From 99bd9d1a63f625f1ee2105e797db8211fbf4ebfe Mon Sep 17 00:00:00 2001 From: "soleng-terraform[bot]" <168111096+soleng-terraform[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 06:41:24 +0000 Subject: [PATCH] update .github/workflows/check.yaml --- .github/workflows/check.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 86b4d18..6b4d244 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -83,7 +83,7 @@ jobs: fail-fast: false matrix: runs-on: [[ubuntu-22.04]] - test-command: ['tox -e func -- --series focal -v', 'tox -e func -- --series jammy -v'] + test-command: ['tox -e func -- -v --series focal', 'tox -e func -- -v --series jammy'] juju-channel: ["3.4/stable"] steps: @@ -121,6 +121,12 @@ jobs: - name: Run tests run: | + # These variables are for a consistent method to find the charm file(s) across all projects. + # It is designed to work both with charms that output one file per base, + # and charms that output a single file to run on all bases. + # Not all charms will use them, and for some charms the variables will resolve to the same file. + export CHARM_PATH_NOBLE="$(pwd)/$(ls | grep '.*24.04.*\.charm$')" + echo "$CHARM_PATH_NOBLE" export CHARM_PATH_JAMMY="$(pwd)/$(ls | grep '.*22.04.*\.charm$')" echo "$CHARM_PATH_JAMMY" export CHARM_PATH_FOCAL="$(pwd)/$(ls | grep '.*20.04.*\.charm$')"