From 51325fd536056743ae93c0b046e8f4ce1098c57c Mon Sep 17 00:00:00 2001 From: Webber Takken Date: Sat, 24 Oct 2026 19:05:42 +0200 Subject: [PATCH] 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. --- .github/workflows/integrity-check.yml | 1 + src/build-args.test.ts | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integrity-check.yml b/.github/workflows/integrity-check.yml index 47aace51..983ca0e6 100644 --- a/.github/workflows/integrity-check.yml +++ b/.github/workflows/integrity-check.yml @@ -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; } diff --git a/src/build-args.test.ts b/src/build-args.test.ts index 5a53c072..9d72f7c0 100644 --- a/src/build-args.test.ts +++ b/src/build-args.test.ts @@ -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'); });