Merge pull request #478 from elisasre/dependabot/go_modules/v2/golang… #404
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: Main | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
working-directory: ./v2 | |
jobs: | |
analyze: | |
runs-on: elisa-normal | |
timeout-minutes: 15 | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: elisa-actions/setup-go-and-mage@v1 | |
with: | |
modFile: go.mod | |
- name: Verify dependencies | |
run: mage go:tidyAndVerify | |
- name: Run unit tests | |
run: mage go:unitTest | |
- name: Upload test coverage to codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
url: https://codecov.csf.elisa.fi | |
flags: unit | |
files: v2/target/tests/cover/unit/cover.txt | |
use_oidc: true | |
- name: Lint | |
run: mage go:lint |