Merge pull request #118 from elisasre/feat/otelclient #93
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 | |
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 | |
- name: Verify dependencies | |
run: | | |
go mod tidy | |
git diff --exit-code -- go.mod go.sum || (echo "Deps are not up to date: run 'go mod tidy' before commit" && exit 1) | |
- name: Run unit tests | |
run: mage unitTest | |
- name: Upload test coverage to codecov | |
uses: elisa-actions/codecov-action@v4-elisa | |
with: | |
url: https://codecov.csf.elisa.fi | |
- name: Lint | |
env: | |
GOLANGCI_LINT_FLAGS: --out-format=github-actions | |
run: mage lint |