Skip to content

Merge pull request #9 from jxsl13/dependabot/github_actions/actions/s… #7

Merge pull request #9 from jxsl13/dependabot/github_actions/actions/s…

Merge pull request #9 from jxsl13/dependabot/github_actions/actions/s… #7

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [stable, oldstable]
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 300s -race -count=1 -covermode=atomic -coverprofile=coverage.out
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
fail_ci_if_error: false
verbose: false