mirror of
https://github.com/actions/setup-go.git
synced 2025-06-30 05:03:43 +00:00
Fix parseGoVersionFile
This commit is contained in:
parent
fabe2129ee
commit
dbe1872ad4
3 changed files with 18 additions and 16 deletions
|
@ -797,7 +797,9 @@ exclude example.com/thismodule v1.3.0
|
|||
|
||||
await main.run();
|
||||
|
||||
expect(logSpy).toHaveBeenCalledWith('Setup go stable version spec 1.14');
|
||||
expect(logSpy).toHaveBeenCalledWith('Setup go version spec 1.14');
|
||||
expect(logSpy).toHaveBeenCalledWith('Attempting to download 1.14...');
|
||||
expect(logSpy).toHaveBeenCalledWith('matching 1.14...');
|
||||
});
|
||||
|
||||
it('reads version from .go-version', async () => {
|
||||
|
@ -806,9 +808,9 @@ exclude example.com/thismodule v1.3.0
|
|||
|
||||
await main.run();
|
||||
|
||||
expect(logSpy).toHaveBeenCalledWith(
|
||||
'Setup go stable version spec 1.13.0'
|
||||
);
|
||||
expect(logSpy).toHaveBeenCalledWith('Setup go version spec 1.13.0');
|
||||
expect(logSpy).toHaveBeenCalledWith('Attempting to download 1.13.0...');
|
||||
expect(logSpy).toHaveBeenCalledWith('matching 1.13.0...');
|
||||
});
|
||||
|
||||
it('is overwritten by go-version', async () => {
|
||||
|
@ -818,9 +820,9 @@ exclude example.com/thismodule v1.3.0
|
|||
|
||||
await main.run();
|
||||
|
||||
expect(logSpy).toHaveBeenCalledWith(
|
||||
'Setup go stable version spec 1.13.1'
|
||||
);
|
||||
expect(logSpy).toHaveBeenCalledWith('Setup go version spec 1.13.1');
|
||||
expect(logSpy).toHaveBeenCalledWith('Attempting to download 1.13.1...');
|
||||
expect(logSpy).toHaveBeenCalledWith('matching 1.13.1...');
|
||||
});
|
||||
|
||||
it('reports a read failure', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue