β¬οΈ Update codecov/codecov-action action to v5 #199
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
# See: https://docs.github.com/ja/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions | |
# See: https://about.codecov.io/blog/getting-started-with-code-coverage-for-golang/ | |
name: test | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
pull_request: | |
jobs: | |
unit: | |
name: unit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ["1.21.x", "1.22.x"] | |
include: | |
- go: 1.22.x | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Test | |
run: make cover | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 |