Integration test (conditional)
Some checks failed
Build & Test WASM / build-and-test (push) Failing after 1m45s
Some checks failed
Build & Test WASM / build-and-test (push) Failing after 1m45s
This commit is contained in:
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user