Skip to content

ci: skip integration tests if CLOUDSCALE_API_TOKEN is missing#48

Merged
alakae merged 1 commit into
mainfrom
alain/require-token
Jan 12, 2026
Merged

ci: skip integration tests if CLOUDSCALE_API_TOKEN is missing#48
alakae merged 1 commit into
mainfrom
alain/require-token

Conversation

@alakae
Copy link
Copy Markdown
Contributor

@alakae alakae commented Jan 12, 2026

If CLOUDSCALE_API_TOKEN is not present (e.g. pull request from fork, dependabot PR) we should skip the integration tests in a clean way (i.e. not failing and making it obvious from the tests overview).

@alakae
Copy link
Copy Markdown
Contributor Author

alakae commented Jan 12, 2026

I personally prefer this pattern over checking in each [jobs.<job_id>.steps[*].if] if the secret is present:

https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets#using-secrets-in-a-workflow

Copy link
Copy Markdown
Collaborator

@mweibel mweibel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alakae alakae merged commit 0ff758d into main Jan 12, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants