diff --git a/__tests__/setup-go.test.ts b/__tests__/setup-go.test.ts index e76fd06..c1946bd 100644 --- a/__tests__/setup-go.test.ts +++ b/__tests__/setup-go.test.ts @@ -698,6 +698,16 @@ describe('setup-go', () => { it('sets an output for each exposed variable', () => { main.setGoEnvOutputs(goEnv); + expect(GO_ENV_OUTPUTS).toEqual([ + 'GOPATH', + 'GOBIN', + 'GOROOT', + 'GOCACHE', + 'GOMODCACHE', + 'GOOS', + 'GOARCH', + 'GOTOOLDIR' + ]); for (const name of GO_ENV_OUTPUTS) { expect(setOutputSpy).toHaveBeenCalledWith(name, goEnv[name] ?? ''); }