mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-08-13 11:23:53 +00:00
15cf2e8052
Updated the Go version setup and removed the code coverage step.
32 lines
715 B
YAML
32 lines
715 B
YAML
name: "Test Decoders"
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
paths:
|
|
- 'internal/decoders/**'
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
test_decoders:
|
|
name: "test decoders"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version-file: "./go.mod"
|
|
|
|
- name: Test
|
|
run: go test -cover -coverprofile=decoders_coverage.txt ./internal/decoders/...
|
|
|
|
- name: Archive code coverage results
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: decoders-code-coverage
|
|
path: decoders_coverage.txt
|