Skip to content

Merge pull request #118 from elisasre/feat/otelclient #93

Merge pull request #118 from elisasre/feat/otelclient

Merge pull request #118 from elisasre/feat/otelclient #93

Workflow file for this run

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