Skip to content

Merge pull request #64 from USED255/dependabot/github_actions/actions… #78

Merge pull request #64 from USED255/dependabot/github_actions/actions…

Merge pull request #64 from USED255/dependabot/github_actions/actions… #78

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
paths:
- "*.go"
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/test.yml"
pull_request:
paths:
- "*.go"
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/test.yml"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
check-latest: true
cache: true
- name: Test
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.txt
verbose: true # optional (default = false)