mirror of
https://github.com/actions/setup-go.git
synced 2026-02-04 06:28:21 +00:00
Merge e187a33917 into a5f9b05d2d
This commit is contained in:
commit
9a633aa24e
3 changed files with 10 additions and 10 deletions
|
|
@ -92,7 +92,7 @@ describe('setup-go', () => {
|
|||
getManifestSpy = jest.spyOn(tc, 'getManifestFromRepo');
|
||||
getAllVersionsSpy = jest.spyOn(im, 'getManifest');
|
||||
|
||||
// httm
|
||||
// httpm
|
||||
httpmGetJsonSpy = jest.spyOn(httpm.HttpClient.prototype, 'getJson');
|
||||
|
||||
// io
|
||||
|
|
@ -146,7 +146,7 @@ describe('setup-go', () => {
|
|||
expect(main.parseGoVersion(goVersionOutput)).toBe('1.16.6');
|
||||
});
|
||||
|
||||
it('can find 1.9.7 from manifest on osx', async () => {
|
||||
it('can find 1.9.7 from manifest on macOS', async () => {
|
||||
os.platform = 'darwin';
|
||||
os.arch = 'x64';
|
||||
|
||||
|
|
@ -544,7 +544,7 @@ describe('setup-go', () => {
|
|||
expect(added).toBeFalsy();
|
||||
});
|
||||
|
||||
it('adds bin if dir not exists', async () => {
|
||||
it('adds bin if dir does not exist', async () => {
|
||||
whichSpy.mockImplementation(async () => {
|
||||
return '/usr/local/go/bin/go';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@ inputs:
|
|||
description: 'Path to the go.mod, go.work, .go-version, or .tool-versions file.'
|
||||
check-latest:
|
||||
description: 'Set this option to true if you want the action to always check for the latest available version that satisfies the version spec'
|
||||
default: false
|
||||
default: 'false'
|
||||
token:
|
||||
description: Used to pull Go distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
|
||||
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
|
||||
cache:
|
||||
description: Used to specify whether caching is needed. Set to true, if you'd like to enable caching.
|
||||
default: true
|
||||
default: 'true'
|
||||
cache-dependency-path:
|
||||
description: 'Used to specify the path to a dependency file (e.g., go.mod, go.sum)'
|
||||
architecture:
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ Pull requests are the easiest way to contribute changes to git repos at GitHub.
|
|||
- To implement new features or fix bugs, you need to make changes to the `.ts` files, which are located in the `src` folder
|
||||
- To comply with the code style, **you need to run the `format` script**
|
||||
- To lint the code, **you need to run the `lint:fix` script**
|
||||
- To transpile source code to `javascript` we use [NCC](https://github.com/vercel/ncc). **It is very important to run the `build` script after making changes**, otherwise your changes will not get into the final `javascript` build
|
||||
- To transpile source code to `javascript` we use [NCC](https://github.com/vercel/ncc). **It is very important to run the `build` script after making changes**; otherwise, your changes will not get into the final `javascript` build
|
||||
- You can also start formatting, building code, and testing with a single `pre-checkin` command
|
||||
|
||||
**Learn more about how to implement tests:**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue