Skip to content

Commit 2a77982

Browse files
committed
👷 add ensure-compatibility job to compare Swift outputs with qs.js
1 parent b8721b0 commit 2a77982

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,42 @@ jobs:
248248
name: macOS-crashlogs-objc-xcode-${{ matrix.xcode }}-${{ matrix.os }}
249249
path: crashlogs-objc
250250
if-no-files-found: ignore
251+
252+
ensure-compatibility:
253+
name: Ensure compatibility with qs.js
254+
needs: analyze
255+
runs-on: macos-15
256+
timeout-minutes: 15
257+
steps:
258+
- name: Checkout
259+
uses: actions/checkout@v5
260+
with:
261+
fetch-depth: 0
262+
263+
- name: Select Xcode
264+
uses: maxim-lobanov/setup-xcode@v1
265+
with:
266+
xcode-version: '16.3'
267+
268+
- name: Show Xcode & Swift versions
269+
run: |
270+
xcodebuild -version
271+
swift --version
272+
273+
- name: Install Node.js 20
274+
uses: actions/setup-node@v4
275+
with:
276+
node-version: '20'
277+
278+
- name: Install qs.js
279+
working-directory: Tools/QsSwiftComparison
280+
run: npm install
281+
282+
- name: Compare Swift vs qs.js outputs (deterministic)
283+
if: ${{ always() }}
284+
continue-on-error: true
285+
working-directory: Tools/QsSwiftComparison
286+
env:
287+
SWIFT_DETERMINISTIC_HASHING: 1
288+
LC_ALL: C
289+
run: bash compare_outputs.sh

0 commit comments

Comments
 (0)