mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-08-31 11:59:14 +00:00
24 lines
537 B
YAML
24 lines
537 B
YAML
name: Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: "./go.mod"
|
|
- name: Run tests
|
|
run: go test -coverprofile=coverage.txt ./...
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v7
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: coverage.txt |