Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/merge-gate.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 24 additions & 1 deletion .github/workflows/periodic-validation.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions doc/changes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Unreleased

## Summary

## Feature

* #854: Added `workflow_dispatch` for `periodic-validation.yml`

## Refactoring

* #852: Modified `merge-gate` to ensure `run-fast-tests` succeeds
2 changes: 1 addition & 1 deletion doc/user_guide/features/github_workflows/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ coverage to Sonar for an overall report.
.. literalinclude:: ../../../../exasol/toolbox/templates/github/workflows/periodic-validation.yml
:language: yaml
:start-at: schedule:
:end-at: - cron: "0 0 * * 6"
:end-at: workflow_dispatch:

.. mermaid::

Expand Down
1 change: 1 addition & 0 deletions exasol/toolbox/templates/github/workflows/merge-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
# If you need additional jobs to be part of the merge gate, add them below
needs:
- run-fast-checks
- run-fast-tests
- run-slow-checks
(% if workflow_extension.merge_gate %)
- merge-gate-extension
Expand Down
23 changes: 23 additions & 0 deletions exasol/toolbox/templates/github/workflows/periodic-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,46 @@ on:
schedule:
# At 00:00 on Saturday. (https://crontab.guru)
- cron: "0 0 * * 6"
workflow_dispatch:

jobs:
restrict-to-default-branch:
name: Restrict to Default Branch
runs-on: "(( os_version ))"
permissions:
contents: write
pull-requests: write

steps:
- name: Fail if not running on the default branch
id: check-branch
if: github.ref != format('refs/heads/{0}', github.event.repository.default_branch)
uses: actions/github-script@v8
with:
script: |
core.setFailed('Not running on the default branch. github.ref is ${{ github.ref }}')

run-fast-checks:
name: Fast Checks
uses: ./.github/workflows/checks.yml
needs:
- restrict-to-default-branch
permissions:
contents: read

run-fast-tests:
name: Fast Tests
uses: ./.github/workflows/fast-tests.yml
needs:
- restrict-to-default-branch
permissions:
contents: read

run-slow-checks:
name: Slow Checks
uses: ./.github/workflows/slow-checks.yml
needs:
- restrict-to-default-branch
secrets: inherit
permissions:
contents: read
Expand Down