-
Notifications
You must be signed in to change notification settings - Fork 4
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
Install go from releases #1
base: master
Are you sure you want to change the base?
Conversation
Why do we need the |
9a71e4e
to
3632aa4
Compare
.github/workflows/test.yml
Outdated
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: 0 0 * * * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to update the event configuration in the final version of yml:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
e671865
to
e7884ed
Compare
__tests__/data/go-release.json
Outdated
{ | ||
"version": "1.2.3", | ||
"stable": true, | ||
"release_url": "https://github.com/actions/sometool/releases/tag/1.2.3-20200402.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can delete this file
__tests__/setup-go.test.ts
Outdated
expect(fileName).toBe('go1.13.7.windows-amd64.zip'); | ||
it('can mock manifest versions', async () => { | ||
let versions: tc.IToolRelease[] | null = await tc.getManifestFromRepo( | ||
'actions', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we don't need the following tests in the form they currently exist:
- it('can mock manifest versions', async () => {
- it('can find 1.12.17 from manifest on osx', async () => {
- it('can find 12 from manifest on linux', async () => {
- it('can find 10 from manifest on windows', async () => {
These "it" blocks test the functions located in the actions/tool-cache repository (getManifestFromRepo, findFromManifest etc.) and we don't have tests with several functions from installer.ts
script (getGo, installGoVersion, extractGoArchive etc.).
350d374
to
fbbee91
Compare
8afde2f
to
ddc7688
Compare
* add tests * fixing tests * change names of it * resolve comments Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
* fix comments * formatting Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like
return file.arch === archFilter && file.os === platFilter; | ||
}); | ||
if (goFile) { | ||
core_1.debug(`matched ${candidate.version}`); | ||
core.debug(`matched ${candidate.version}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Improve documentation regarding dependencies caching
Since added go-versions was added to actions, we need add logic to install go from our releases.