1
0

Add more integration tests
All checks were successful
Build and test project / build-and-test (push) Successful in 1m46s

This commit is contained in:
2026-03-17 18:38:54 +01:00
parent 26c2d21fb3
commit dbd2f391bd
9 changed files with 850 additions and 268 deletions

View File

@@ -52,24 +52,29 @@ jobs:
GOOS=js GOARCH=wasm go test -exec="$EXEC" ./...
- name: Check if integration test is needed
id: check-wasm
id: check-e2e
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
elif git diff --name-only HEAD~1 HEAD | grep -qE '^(kobopatch-wasm/|web/|tests/|nickelmenu/)'; then
echo "run=true" >> "$GITHUB_OUTPUT"
else
echo "run=false" >> "$GITHUB_OUTPUT"
fi
- name: Full integration test (WASM)
if: steps.check-wasm.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'
if: steps.check-e2e.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'
run: |
cd kobopatch-wasm
./test-integration.sh
- name: Set up NickelMenu assets
if: steps.check-e2e.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'
run: |
nickelmenu/setup.sh
- name: Full integration test (Playwright)
if: steps.check-wasm.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'
if: steps.check-e2e.outputs.run == 'true' && env.GITEA_ACTIONS != 'true'
run: |
cd tests/e2e
./run-e2e.sh