From dbc67a9fc6c90618c9a2e91f9cc0abfff7e1f88a Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Fri, 8 Sep 2023 16:41:36 +0200 Subject: [PATCH] .github: add nightly testing scenario This tests Cockpit nightly with `updates-testing` enabled. --- .github/workflows/nightly.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 000000000000..1b1db3f611c2 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,22 @@ +name: nightly +on: + schedule: + - cron: '0 1 * * *' + # can be run manually on https://github.com/cockpit-project/cockpit-podman/actions + workflow_dispatch: +jobs: + trigger: + permissions: + statuses: write + runs-on: ubuntu-22.04 + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - name: Trigger updates-testing scenario + run: | + make bots + mkdir -p ~/.config/cockpit-dev + echo "${{ github.token }}" >> ~/.config/cockpit-dev/github-token + TEST_OS=$(PYTHONPATH=bots python3 -c 'from lib.constants import TEST_OS_DEFAULT; print(TEST_OS_DEFAULT)') + bots/tests-trigger --force "-" "${TEST_OS}/updates-testing"