Unity builder v4 Parity Update (#246)

- Updated activation strategy to align with builder strategy for more stable activation with retry logic
- Added `containerRegistryImageVersion` and `containerRegistryRepository` for improved custom image support
- Added `runAsHostUser` to fix self-hosted runner issues
- Scripts folder cleanup
- Added error/warning annotations for activation issues
- Improved serial masking
- Image environment factory addition and docker refactoring
This commit is contained in:
Andrew Kahr
2023-12-12 22:12:36 -08:00
committed by GitHub
parent c80d9094f5
commit ce074787fb
56 changed files with 3044 additions and 599 deletions

View File

@@ -7,6 +7,19 @@ const mockedFsExistsSync = jest.spyOn(fs, 'existsSync');
const mockedFsReadFileSync = jest.spyOn(fs, 'readFileSync');
describe('Input', () => {
let originalEnvironment;
beforeEach(() => {
// Store original process.env
originalEnvironment = process.env;
process.env['UNITY_SERIAL'] = 'F4-1234-1234-1234';
});
afterEach(() => {
// Restore original process.env
process.env = originalEnvironment;
});
describe('getFromUser', () => {
it('does not throw', () => {
expect(() => Input.getFromUser()).not.toThrow();