diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000000..00f234c739 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,21 @@ +name: nightly +on: + schedule: + - cron: '0 1 * * *' + # can be run manually on https://github.com/rhinstaller/anaconda-webui/actions + workflow_dispatch: +jobs: + trigger: + permissions: + statuses: write + runs-on: ubuntu-22.04 + steps: + - name: Clone repository + uses: actions/checkout@v4 + + - name: Trigger updates-testing scenario + run: | + make bots + mkdir -p ~/.config/cockpit-dev + echo "${{ github.token }}" >> ~/.config/cockpit-dev/github-token + bots/tests-trigger --force "-" "${TEST_OS}/compose-${COMPOSE_ID}" diff --git a/test/run b/test/run index 2c237d7f87..c39b2d3787 100755 --- a/test/run +++ b/test/run @@ -7,6 +7,7 @@ # # expensive - expensive tests (test which run a full installation) # other - non-expensive tests +# compose-{compose-id} - run tests on a specific compose set -eux @@ -21,6 +22,9 @@ RE_EXPENSIVE='E2E' # every known case needs to set RUN_OPTS to something non-empty, so that we can check if we hit any branch case "${TEST_SCENARIO:=}" in + *compose-*) + RUN_OPTS="$ALL_TESTS"; export TEST_COMPOSE="${TEST_SCENARIO#compose-}" + ;; *efi*) RUN_OPTS="$ALL_TESTS"; export TEST_FIRMWARE="efi" ;;& *expensive*) RUN_OPTS="$(echo "$ALL_TESTS" | grep -E "$RE_EXPENSIVE")"