Closed duffn closed 1 year ago
1 Warning | |
---|---|
:warning: | Unless you're refactoring existing code or improving documentation, please update CHANGELOG.md. |
Here's an example of a CHANGELOG.md entry:
* [#445](https://github.com/slack-ruby/slack-ruby-client/pull/445): Only run integration tests in integration_test job - [@duffn](https://github.com/duffn).
Generated by :no_entry_sign: Danger
This:
1) skips the integration test job entirely in GitHub Actions if there isn't a Slack token in secrets.
It's particularly annoying to use the absence of a secret to control job flow. This is based on the answer here https://stackoverflow.com/questions/70249519/how-to-check-if-a-secret-variable-is-empty-in-if-conditional-github-actions
I went with the option of skipping the job entirely so it doesn't need to even checkout or install dependencies if the secret isn't there, but can be convinced this isn't the right approach.
Hidden secret, allows integration tests:
No secret, skips integration tests:
2) only runs the
integration
directory tests on this jobI'm not 100% sure why both
SPEC
andSPEC_OPTS
are required here, but it doesn't work with either/or but only bothCloses #444