feat: codecov (#1023)

* chore: missing schedule on auto merge

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>

* feat: adding codecoverage back in

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>

---------

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
Alex Jones 2024-03-20 11:07:33 +00:00 committed by GitHub
parent a1d0d0a180
commit fe81d16f75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View File

@ -9,11 +9,10 @@ on:
- main - main
env: env:
GO_VERSION: "~1.21" GO_VERSION: "~1.21"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
@ -24,4 +23,8 @@ jobs:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
- name: Run test - name: Run test
run: go test ./... run: go test ./... -coverprofile=coverage.txt
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@ -12,6 +12,9 @@
], ],
"automerge": true, "automerge": true,
"automergeType": "pr", "automergeType": "pr",
"schedule": [
"at any time"
],
"platformAutomerge": true, "platformAutomerge": true,
"packageRules": [ "packageRules": [
{ {