Update workflow
This commit is contained in:
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@@ -36,6 +36,12 @@ jobs:
|
|||||||
cd kobopatch-wasm/kobopatch-src
|
cd kobopatch-wasm/kobopatch-src
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
|
- name: Build WASM binary
|
||||||
|
run: |
|
||||||
|
cd kobopatch-wasm
|
||||||
|
./build.sh
|
||||||
|
test -f kobopatch.wasm || { echo "ERROR: kobopatch.wasm not found after build"; exit 1; }
|
||||||
|
|
||||||
- name: Run WASM tests
|
- name: Run WASM tests
|
||||||
run: |
|
run: |
|
||||||
cd kobopatch-wasm/kobopatch-src
|
cd kobopatch-wasm/kobopatch-src
|
||||||
@@ -47,7 +53,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
GOOS=js GOARCH=wasm go test -exec="$EXEC" ./...
|
GOOS=js GOARCH=wasm go test -exec="$EXEC" ./...
|
||||||
|
|
||||||
- name: Check if integration test needed
|
- name: Check if integration test is needed
|
||||||
id: check-wasm
|
id: check-wasm
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
||||||
@@ -58,22 +64,8 @@ jobs:
|
|||||||
echo "run=false" >> "$GITHUB_OUTPUT"
|
echo "run=false" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Integration test (full patching pipeline)
|
- name: Full integration test
|
||||||
if: steps.check-wasm.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'
|
if: steps.check-wasm.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd kobopatch-wasm
|
cd kobopatch-wasm
|
||||||
./test-integration.sh
|
./test-integration.sh
|
||||||
|
|
||||||
- name: Build WASM binary
|
|
||||||
run: |
|
|
||||||
cd kobopatch-wasm
|
|
||||||
./build.sh
|
|
||||||
|
|
||||||
- name: Upload WASM artifact
|
|
||||||
if: false
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: kobopatch-wasm
|
|
||||||
path: |
|
|
||||||
kobopatch-wasm/kobopatch.wasm
|
|
||||||
kobopatch-wasm/wasm_exec.js
|
|
||||||
|
|||||||
Reference in New Issue
Block a user