chore(deps): update codecov/codecov-action action to v4 - autoclosed #182
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: | |
- '1.15' | |
- '1.16' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Run go test | |
run: | | |
go vet ./... | |
go build ./... | |
go test ./... \ | |
-tags hasSed \ | |
-race -v \ | |
-coverprofile=cover.out -covermode atomic -coverpkg ./... | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./cover.out | |
test-wasm: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
env: | |
GOOS: js | |
GOARCH: wasm | |
GO_VERSION: 1.16.8 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '14' | |
- name: Get go_js_wasm_exec | |
run: | | |
mkdir -p ${HOME}/.local/bin | |
wget https://raw.githubusercontent.com/golang/go/go${{ env.GO_VERSION }}/misc/wasm/go_js_wasm_exec \ | |
-O ${HOME}/.local/bin/go_js_wasm_exec | |
wget https://raw.githubusercontent.com/golang/go/go${{ env.GO_VERSION }}/misc/wasm/wasm_exec.js \ | |
-O ${HOME}/.local/bin/wasm_exec.js | |
chmod +x ${HOME}/.local/bin/go_js_wasm_exec | |
- name: Run go test | |
run: | | |
go vet ./... | |
go build ./... | |
go test ./... \ | |
-v \ | |
-exec=${HOME}/.local/bin/go_js_wasm_exec \ | |
-coverprofile=cover.out -covermode atomic -coverpkg ./... | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./cover.out | |
tidy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.16' | |
- name: Check tidied | |
run: | | |
go mod download | |
go mod tidy | |
git diff --exit-code go.mod go.sum |