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

Upgrade setup-node in actions #817

Merged
merged 3 commits into from
Sep 16, 2021
Merged

Upgrade setup-node in actions #817

merged 3 commits into from
Sep 16, 2021

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Sep 16, 2021

I have experienced some pain working with our CI this week.

This PR reduces the number of actions that we have to run within the actions. Should reduce the runtime across each of the actions.... actions.

@mattseddon mattseddon changed the title Upgrade setup-node in action Upgrade setup-node in actions Sep 16, 2021
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
Copy link
Member Author

Choose a reason for hiding this comment

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

[F] This step was taking up to 4m to run!

@codeclimate
Copy link

codeclimate bot commented Sep 16, 2021

Code Climate has analyzed commit 8e4e78a and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.1% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon marked this pull request as ready for review September 16, 2021 04:48
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn
node-version: '14'
Copy link
Member Author

Choose a reason for hiding this comment

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

[Q] Any idea if we were running on 16 before?

Copy link
Contributor

Choose a reason for hiding this comment

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

The action's docs say if node-version is omitted it'll run on the one on PATH, and this issue says GHA uses LTS by default, so if those are both true then we should've been on 14 already- explicitly specifying it is better, though.

@mattseddon mattseddon merged commit ff916dc into master Sep 16, 2021
@mattseddon mattseddon deleted the update-action branch September 16, 2021 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants