Skip to content

Merge pull request #10 from jxsl13/dependabot/github_actions/codecov/… #14

Merge pull request #10 from jxsl13/dependabot/github_actions/codecov/…

Merge pull request #10 from jxsl13/dependabot/github_actions/codecov/… #14

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [stable]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Vet
run: go vet ./...
- name: Code Coverage
run: go test ./... -timeout 600s -race -count=1 -covermode=atomic -coverprofile=coverage.out
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
fail_ci_if_error: false
verbose: false