Skip to content

Commit

Permalink
ci: add logic to update code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Aug 16, 2024
1 parent 770ef46 commit d381b51
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/codecoverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update Coverage

on:
push:
branches: [main]

jobs:
coverage:
name: Update Code Coverage
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go
uses: actions/[email protected]
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
id: go

- name: "Get dependencies"
id: dependencies
run: |
go get
- name: Go Tests
run: |
mkdir -p tests/data
make tests-coverage
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit d381b51

Please sign in to comment.