haystack/.github/workflows/tests_skipper_workflow.yml
Stefano Fiorucci 8b08ba00fa
ci: use ubuntu-slim where makes sense (#10234)
* ci: use ubuntu-slim where makes sense

* revert some changes

* test more actions

* test sync docs too

* revert

* set go version
2025-12-12 14:57:32 +01:00

25 lines
917 B
YAML

# If you change this name also do it in tests.yml and ci_metrics.yml
# We use a separate workflow to skip the tests if the PR contains both code and non-code changes (e.g. release notes).
# Skipping the job unfortunately doesn't work because GitHub will treat these jobs as successful even if they are
# skipped. Hence, we need to revert to a separate workflow.
name: Tests
on:
workflow_call:
inputs:
tests_were_skipped:
type: boolean
required: true
jobs:
catch-all:
# Don't run this check if the PR contains both code and non-code changes (e.g. release notes)
name: Mark tests as completed
runs-on: ubuntu-slim
steps:
- name: Skip tests
if: ${{ github.event.inputs.tests_were_skipped }}
run: echo "Skipped!"
- name: Tests completed successfully
if: ${{ !github.event.inputs.tests_were_skipped }}
run: echo "Tests completed!"