github-workflows-kt icon indicating copy to clipboard operation
github-workflows-kt copied to clipboard

Split integration tests and make them run on GitHub

Open jmfayard opened this issue 2 years ago • 1 comments

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

jmfayard avatar Apr 29 '22 23:04 jmfayard

I simplified my solution which now works with a shell script + a separate repository currently https://github.com/jmfayard/github-actions-integration

jmfayard avatar Apr 30 '22 08:04 jmfayard

Replaced with something simpler, see the commits in #87.

krzema12 avatar Aug 10 '22 06:08 krzema12