From c0e4e0c60d1056ed5b1cdb5ed15ff10c22458340 Mon Sep 17 00:00:00 2001 From: zhangyimingdatiancai <2654488395@qq.com> Date: Mon, 24 Jun 2024 08:36:42 +0800 Subject: [PATCH] Update GitHub Action configurations (#26) - Update the Node.js version from 18 to 20 to resolve warning log in pipeline logs - Add double quote for Go language test's coverprofile flag for avoid codov can't find "coverage.txt" in Windows environments --- .github/workflows/go.yml | 6 +++--- .github/workflows/publish.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cc4d7c4..0a2183a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -39,7 +39,7 @@ jobs: - name: Test run: | cd cmd - GOOS=js GOARCH=wasm GO111MODULE=on go test -exec="$(go env GOROOT)/misc/wasm/go_js_wasm_exec" -v ./... -coverprofile=coverage.txt -covermode=atomic + GOOS=js GOARCH=wasm GO111MODULE=on go test -exec="$(go env GOROOT)/misc/wasm/go_js_wasm_exec" -v ./... -coverprofile="coverage.txt" -covermode=atomic - name: Codecov uses: codecov/codecov-action@v4 @@ -58,9 +58,9 @@ jobs: gzip -f --best ../dist/excelize.wasm - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: NPM Build run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3d0b88d..f30da96 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,7 @@ jobs: - name: Test run: | cd cmd - GOOS=js GOARCH=wasm GO111MODULE=on go test -exec="$(go env GOROOT)/misc/wasm/go_js_wasm_exec" -v ./... -coverprofile=coverage.txt -covermode=atomic + GOOS=js GOARCH=wasm GO111MODULE=on go test -exec="$(go env GOROOT)/misc/wasm/go_js_wasm_exec" -v ./... -coverprofile="coverage.txt" -covermode=atomic - name: Codecov uses: codecov/codecov-action@v4 @@ -53,9 +53,9 @@ jobs: gzip -f --best ../dist/excelize.wasm - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: NPM Build run: |