Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI workflows to modern standards #40

Merged
merged 8 commits into from
Feb 4, 2021
Merged

Update CI workflows to modern standards #40

merged 8 commits into from
Feb 4, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Feb 4, 2021

Some advancements have been made in the GitHub Actions actions and workflows used by this repository since the time the CI system was originally set up. This PR brings them back to state of the art status again.

The arduino/actions/libraries/spell-check action previously in use is deprecated.

In the event of a false positive, the problematic word should be added, in all lowercase, to the `ignore-words-list` field of `./.codespellrc`. Regardless of the case of the word in the false positive, it must be in all lowercase in the ignore list. The ignore list is comma-separated with no spaces.
The following additional events now trigger the workflow:
- Weekly scheduled trigger. This would catch breakage caused by the external library and platform dependencies.
- Trigger via the GitHub web interface.
- Trigger via the GitHub API.
The official dedicated repository for the Arduino sketch compilation GitHub Actions action is now
arduino/compile-sketches. Since the time the action was moved, there was a breaking change to the default sketches
report file name. Rather than continuing to rely on the default value, a specific file name is now defined in the
workflow.
The API of the arduino/compile-sketches GitHub Actions action has evolved since the time this repository's CI was set
up. Although backwards compatibility with the previous API was retained, its use is deprecated and results in
potentially confusing warnings.
…requests

The arduino/compile-sketches GitHub Actions action needs to do a GitHub API request to determine the base branch of a PR
for the deltas determination. If a token is not defined via the action's `github-token` input, it does an
unauthenticated API request, which is subject to more strict rate limiting policy. Although its unlikely for the number
of API requests to exceed the unauthentticated allowance, use of a token ensures it will never happen. GitHub Actions
provides a token for this purpose, so there is no need to set up a custom one.
The following additional events now trigger the workflow:
- Pushed commit that modifys the action's workflow. This is useful for verifying that the change was correct.
- Trigger via the GitHub web interface.
- Trigger via the GitHub API.
Since the time the CI system for this repository was set up, Arduino's sketch compilation GitHub Actions actions have
been moved to dedicated repositories and the copies left behind in the experimental arduino/actions repository
deprecated.
…flow

Even though the default artifact name is in use, reliance on this default is perhaps a bit more prone to issues.
@per1234 per1234 requested a review from aentinger February 4, 2021 10:15
Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

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

Thank you @per1234 🚀

@aentinger aentinger merged commit 2691d3d into arduino-libraries:master Feb 4, 2021
@aentinger aentinger mentioned this pull request Feb 4, 2021
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