1
0

Integration test (conditional)
Some checks failed
Build & Test WASM / build-and-test (push) Failing after 1m45s

This commit is contained in:
2026-03-16 11:41:35 +01:00
parent 8162cc70a8
commit 5e80cfd6d1
6 changed files with 286 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ name: Build & Test WASM
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
@@ -12,6 +13,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Go
uses: actions/setup-go@v5
@@ -44,6 +47,23 @@ jobs:
fi
GOOS=js GOARCH=wasm go test -exec="$EXEC" ./...
- name: Check if integration test needed
id: check-wasm
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
echo "run=true" >> "$GITHUB_OUTPUT"
elif git diff --name-only HEAD~1 HEAD | grep -q '^kobopatch-wasm/'; then
echo "run=true" >> "$GITHUB_OUTPUT"
else
echo "run=false" >> "$GITHUB_OUTPUT"
fi
- name: Integration test (full patching pipeline)
if: steps.check-wasm.outputs.run == 'true'
run: |
cd kobopatch-wasm
./test-integration.sh
- name: Build WASM binary
run: |
cd kobopatch-wasm