Skip to content

Commit

Permalink
Upload code coverage results
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrosse committed Mar 9, 2024
1 parent 937ca96 commit cd6fa5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
name: Unit Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
on: [push, pull_request]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ^1.16
go-version: ^1.22

- name: Test
run: go test -v ./...
run: go test -v -cover -coverprofile=coverage.txt -covermode=count ./...

- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage.txt
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage.txt

0 comments on commit cd6fa5c

Please sign in to comment.