CI: update test workflow deps #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🧪 Execute Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test: | |
name: 🧪 Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code 🛎️ | |
uses: actions/checkout@v4 | |
- name: Set up Go 🧰 | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Run tests 🛠️ | |
run: make test | |
- name: Report coverage 📈 | |
run: go test -coverprofile=coverage.out ./... | |
- name: Upload coverage to Codecov 📤 | |
uses: codecov/codecov-action@v4 | |
with: | |
files: coverage.out | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |