4
0
Fork 0
mirror of https://github.com/actions/setup-go.git synced 2025-11-10 05:46:55 +00:00

Compare commits

...

5 commits

Author SHA1 Message Date
Josh Soref
68ed3274a2
Merge 98cae64d4a into c0137caad7 2025-09-17 07:04:28 +07:00
Josh Soref
98cae64d4a spelling: spell checker
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2025-01-02 16:07:55 -05:00
Josh Soref
4b7aaecd5c spelling: occurred
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2025-01-02 15:39:01 -05:00
Josh Soref
2c2977fbc8 spelling: macos
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2025-01-02 15:39:01 -05:00
Josh Soref
d4c9e7cb2c spelling: httpm
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2025-01-02 15:39:01 -05:00
3 changed files with 5 additions and 5 deletions

View file

@ -51,7 +51,7 @@ describe('restoreCache', () => {
); );
}); });
it('should inform if cache hit is not occured', async () => { it('should inform if cache hit is not occurred', async () => {
//Arrange //Arrange
hashFilesSpy.mockImplementation((somePath: string) => { hashFilesSpy.mockImplementation((somePath: string) => {
return new Promise<string>(resolve => { return new Promise<string>(resolve => {
@ -74,7 +74,7 @@ describe('restoreCache', () => {
expect(infoSpy).toHaveBeenCalledWith(`Cache is not found`); expect(infoSpy).toHaveBeenCalledWith(`Cache is not found`);
}); });
it('should set output if cache hit is occured', async () => { it('should set output if cache hit is occurred', async () => {
//Arrange //Arrange
hashFilesSpy.mockImplementation((somePath: string) => { hashFilesSpy.mockImplementation((somePath: string) => {
return new Promise<string>(resolve => { return new Promise<string>(resolve => {

View file

@ -92,7 +92,7 @@ describe('setup-go', () => {
getManifestSpy = jest.spyOn(tc, 'getManifestFromRepo'); getManifestSpy = jest.spyOn(tc, 'getManifestFromRepo');
getAllVersionsSpy = jest.spyOn(im, 'getManifest'); getAllVersionsSpy = jest.spyOn(im, 'getManifest');
// httm // httpm
httpmGetJsonSpy = jest.spyOn(httpm.HttpClient.prototype, 'getJson'); httpmGetJsonSpy = jest.spyOn(httpm.HttpClient.prototype, 'getJson');
// io // io
@ -146,7 +146,7 @@ describe('setup-go', () => {
expect(main.parseGoVersion(goVersionOutput)).toBe('1.16.6'); 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.platform = 'darwin';
os.arch = 'x64'; os.arch = 'x64';

View file

@ -27,7 +27,7 @@ Pull requests are the easiest way to contribute changes to git repos at GitHub.
- Please check that no one else has already created a pull request with these changes - Please check that no one else has already created a pull request with these changes
- Use a "feature branch" for your changes. That separates the changes in the pull request from your other changes and makes it easy to edit/amend commits in the pull request - Use a "feature branch" for your changes. That separates the changes in the pull request from your other changes and makes it easy to edit/amend commits in the pull request
- Make sure your changes are formatted correctly and consistently with the rest of the documentation - Make sure your changes are formatted correctly and consistently with the rest of the documentation
- Re-read what you wrote, and run a spellchecker on it to make sure you didn't miss anything - Re-read what you wrote, and run a spell checker on it to make sure you didn't miss anything
- If your pull request is connected to an open issue, please, leave a link to this issue in the `Related issue:` section - If your pull request is connected to an open issue, please, leave a link to this issue in the `Related issue:` section
- If you later need to add new commits to the pull request, you can simply commit the changes to the local branch and then push them. The pull request gets automatically updated - If you later need to add new commits to the pull request, you can simply commit the changes to the local branch and then push them. The pull request gets automatically updated