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

BAU: use setup-node action for dependency caching #1821

Merged
merged 4 commits into from
Jul 18, 2024
Merged

Conversation

whi-tw
Copy link
Contributor

@whi-tw whi-tw commented Jul 11, 2024

What

Rather than manually caching via actions/cache, we should use the setup-node action to cache dependencies.

Also, add dependency-review workflow to alert to dependency issues in PRs.

Finally, pin all dependencies to SHAs, not semver, as in govuk-one-login/authentication-api#4894

How to review

Code Review

@whi-tw whi-tw requested review from a team as code owners July 11, 2024 14:30
@whi-tw whi-tw changed the title BAU: use setup-node action for dependecy caching BAU: use setup-node action for dependency caching Jul 11, 2024
@whi-tw whi-tw force-pushed the BAU/improve-gha-caching branch 3 times, most recently from 9dd30e6 to 9687759 Compare July 11, 2024 15:48
whi-tw added 2 commits July 18, 2024 10:38
Rather than manually caching via `actions/cache`, we should use the
`setup-node` action to cache dependencies.
@whi-tw whi-tw force-pushed the BAU/improve-gha-caching branch 2 times, most recently from e0b66c9 to c8dfdb4 Compare July 18, 2024 11:13
whi-tw added 2 commits July 18, 2024 12:14
Rather than using tags, we should pin actions to specific SHAs to ensure
we are running the same version of the action every time.

Additionally, introduce a new workflow to ensure that all actions are
pinned as such.
@whi-tw whi-tw force-pushed the BAU/improve-gha-caching branch from c8dfdb4 to 84b319f Compare July 18, 2024 11:14
Copy link

@whi-tw whi-tw merged commit 59c4338 into main Jul 18, 2024
7 checks passed
@whi-tw whi-tw deleted the BAU/improve-gha-caching branch July 18, 2024 12:30
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