Skip to content

Commit

Permalink
Updated CI integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jul 22, 2024
1 parent 2976ebf commit 58a3663
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: mkdir -p /tmp/log/YaST2

- name: Start container
run: podman run --privileged --detach --name agama --ipc=host -e CI -e GITHUB_ACTIONS -v /dev:/dev -v .:/checkout -v /tmp/log/YaST2:/var/log/YaST2 registry.opensuse.org/systemsmanagement/agama/staging/containers/opensuse/agama-testing:latest
run: podman run --privileged --detach --name agama --ipc=host -e CI -e GITHUB_ACTIONS -v /dev:/dev -v .:/checkout -v /tmp/log/YaST2:/var/log/YaST2 registry.opensuse.org/systemsmanagement/agama/devel/containers/opensuse/agama-testing:latest

- name: Environment
run: podman exec agama bash -c "env | sort"
Expand Down Expand Up @@ -68,13 +68,11 @@ jobs:
- name: Run the Agama smoke test
run: podman exec agama curl http://localhost

- name: Check Playwright version
run: podman exec agama playwright --version

- name: Run the Playwright tests
# user authentication is not required when cockpit runs a local session
# run the tests in the Chromium browser
run: podman exec agama bash -c "cd /checkout/playwright && SKIP_LOGIN=true playwright test --trace on --project chromium"
- name: Run the Puppeteer tests
# the testing script behaves differently when running in a Git checkout,
# remove the .git directory so it behaves like on the Live ISO
# (Puppeteer is installed using an RPM, not by "npm install" as in git)
run: podman exec agama bash -c "cd checkout/puppeteer && rm -rf ../.git && ./agama-integration-tests tests/test_root_password.js"

- name: Again show the D-Bus services log
# run even when any previous step fails
Expand All @@ -89,7 +87,7 @@ jobs:
name: test-results
retention-days: 30
path: |
playwright/test-results/**/*
puppeteer/log/**/*
/tmp/log/YaST2/y2log
- name: IRC notification
Expand Down
2 changes: 1 addition & 1 deletion puppeteer/agama-integration-tests
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -eu
MYDIR=$(realpath "$(dirname "$0")")

if [ -e "$MYDIR/../.git/" ]; then
PUPPETEER_SKIP_DOWNLOAD=true npm install --omit=optional
npm install --omit=optional
npx mocha --bail "$@"
else
# set the default load path
Expand Down

0 comments on commit 58a3663

Please sign in to comment.