Skip to content

Update linter and formatter to match#60

Merged
sethvargo merged 10 commits into
google-github-actions:masterfrom
sethvargo:sethvargo/match
Feb 28, 2020
Merged

Update linter and formatter to match#60
sethvargo merged 10 commits into
google-github-actions:masterfrom
sethvargo:sethvargo/match

Conversation

@sethvargo
Copy link
Copy Markdown
Contributor

Match linter and esrules

Do you want me to also update husky in this PR?

@craigdbarber
Copy link
Copy Markdown

Match linter and esrules

Do you want me to also update husky in this PR?

Sure, that'd be great. Thanks!

14kb drop in compiled package
There was a bug in the current tests where, depending on execution order, the tool path would differ. That's because actions/toolcache reads the RUNNER_TOOL_CACHE and RUNNER_TEMP environment variables only once on initial import/require. So, depending on which test ran first, future tests might fail.

This commit introduces a different way to create cache directories, caching the cached directory across tests (irony recognized).

Alternative approaches included re-requiring the actions/toolcache package, but that added 3min to the total build.
Comment thread setup-gcloud/tests/download-util.test.ts
@craigdbarber
Copy link
Copy Markdown

Thanks for the contribution! One general note, using git mv is preferred over git rm and git add, as it preserves the history for the file.

@sethvargo
Copy link
Copy Markdown
Contributor Author

@craigdbarber ack, sorry

@sethvargo sethvargo mentioned this pull request Feb 26, 2020
Copy link
Copy Markdown

@craigdbarber craigdbarber left a comment

Choose a reason for hiding this comment

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

LGTM

@sethvargo sethvargo merged commit 5f5ef3d into google-github-actions:master Feb 28, 2020
@sethvargo sethvargo deleted the sethvargo/match branch February 28, 2020 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants