From 1ad1f3cfd2639e31de20d7a236e8eb538ea518ce Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Tue, 30 Dec 2025 19:18:53 -0600 Subject: [PATCH] feat: enhance CI workflow by adding Node.js setup and WebAssembly test/build steps for Linux AMD64 --- .gitea/workflows/go-test.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitea/workflows/go-test.yml b/.gitea/workflows/go-test.yml index 0c028a7..51ae311 100644 --- a/.gitea/workflows/go-test.yml +++ b/.gitea/workflows/go-test.yml @@ -52,6 +52,12 @@ jobs: restore-keys: | ${{ runner.os }}-go-${{ matrix.goarch }}- + - name: Set up Node.js + if: matrix.os == 'ubuntu-latest' && matrix.goarch == 'amd64' + uses: https://git.quad4.io/actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 + with: + node-version: '22' + - name: Run tests run: task test @@ -59,11 +65,21 @@ jobs: if: matrix.os == 'ubuntu-latest' && matrix.goarch == 'amd64' run: task test-race + - name: Run WebAssembly tests (Linux AMD64 only) + if: matrix.os == 'ubuntu-latest' && matrix.goarch == 'amd64' + run: | + chmod +x misc/wasm/go_js_wasm_exec + task test-wasm + - name: Test build (ensure compilation works) run: | echo "Testing build for current platform (${{ matrix.os }}, ${{ matrix.goarch }})..." task build + - name: Test WebAssembly build (Linux AMD64 only) + if: matrix.os == 'ubuntu-latest' && matrix.goarch == 'amd64' + run: task build-wasm + - name: Test binary execution run: | echo "Testing binary execution on (${{ matrix.os }}, ${{ matrix.goarch }})..."