Upgrade to use typescript instead of javascript and use game-ci images

* Upgrade to using typescript instead of javascript and use game-ci images instead of gableroux images

* Fix errors

* Update bash script

* Fix test

* Remove test

* Add versioning

* Update husky

* Update husky

* Update husky

* Update package.json

* Update husky and image-tag

* Use 'yarn lint-staged' instead of 'npx lint-staged'

* Update entrypoint.sh
This commit is contained in:
David Finol
2022-01-10 21:14:47 -06:00
committed by GitHub
parent 3d32abb6d9
commit a89f0fae68
46 changed files with 6565 additions and 3760 deletions

View File

@@ -0,0 +1,22 @@
import ImageTag from './image-tag';
describe('ImageTag', () => {
describe('constructor', () => {
const unityVersion = '2020.0.00f0';
it('can be called', () => {
expect(() => new ImageTag(unityVersion)).not.toThrow();
});
test.each(['2000.0.0f0', '2011.1.11f1'])('accepts %p version format', (version) => {
expect(() => new ImageTag(version)).not.toThrow();
});
});
describe('toString', () => {
it('returns the correct version', () => {
const image = new ImageTag('2099.1.1111');
expect(image.toString()).toStrictEqual(`unityci/editor:2099.1.1111-linux-il2cpp-0`);
});
});
});