github-workflows-kt
github-workflows-kt copied to clipboard
Split integration tests and make them run on GitHub
Solves #87
Each workflow from IntegrationTest
is defined in its own file.
Each expected YAML is defined in resources/integration/expected/$NAME.yaml
If the test fails, the actual YAML is written to resources/integration/actual/$NAME.yaml
Add a new workflow who copy the YAML worklows to a separate repository;
The shell script ./integration.sh
commit those YAML files to https://github.com/jmfayard/github-actions-integration and pushes to that repo where the workflows are run. Which also means our integration test should have a Push()
trigger
TODO @krzema12 : fork my repo https://github.com/jmfayard/github-actions-integration and update the shell script ./integration.sh
Note: initially I wanted to copy the YAML files via a GitHub workflow. Unfortunately it is forbidden by GitHub to push YAML files inside .github/workflows
, probably to avoid infinite loops. See https://github.com/EndBug/add-and-commit/issues/342
I simplified my solution which now works with a shell script + a separate repository currently https://github.com/jmfayard/github-actions-integration
Replaced with something simpler, see the commits in #87.