mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-11-28 08:08:03 -08:00
ci: fix and enforce formatting on main (#862)
* style: format build-args test with oxfmt * ci: check formatting in the integrity job yarn format:check was only run locally, so unformatted code could land on main unnoticed.
This commit is contained in:
@@ -49,6 +49,7 @@ jobs:
|
||||
case "$(yarn --version)" in 1.*) echo 'expected up-to-date yarn version'; exit 1 ;; esac
|
||||
yarn install --immutable
|
||||
- run: yarn lint
|
||||
- run: yarn format:check
|
||||
- run: yarn test:ci --coverage
|
||||
- run: bash <(curl -s https://codecov.io/bash)
|
||||
- run: yarn build || { echo "build command should always succeed" ; exit 61; }
|
||||
|
||||
@@ -34,9 +34,7 @@ describe('buildCliArgs', () => {
|
||||
});
|
||||
|
||||
it('maps an explicit unityVersion to --engineVersion, overriding auto-detection', () => {
|
||||
const args = buildCliArgs(
|
||||
inputsOf({ targetPlatform: 'WebGL', unityVersion: '6000.0.36f1' }),
|
||||
);
|
||||
const args = buildCliArgs(inputsOf({ targetPlatform: 'WebGL', unityVersion: '6000.0.36f1' }));
|
||||
|
||||
expect(args).toContain('--engineVersion=6000.0.36f1');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user