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:
Webber Takken
2026-10-24 18:05:42 +01:00
committed by GitHub
parent ae0171202c
commit 51325fd536
2 changed files with 2 additions and 3 deletions
+1
View File
@@ -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; }
+1 -3
View File
@@ -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');
});