Skip to content

Remove deprecated WithCollector #881

Remove deprecated WithCollector

Remove deprecated WithCollector #881

Workflow file for this run

name: Pull Request
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
analyze:
defaults:
run:
working-directory: ./v2
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
automerge:
needs: [analyze]
permissions:
pull-requests: write
contents: write
runs-on: elisa-normal
if: |
github.event.pull_request.user.login == 'dependabot[bot]' ||
github.event.pull_request.user.login == 'dops-sre'
steps:
- name: Automerge dependabot and repo-updater PR's
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ secrets.DOPS_SRE_PAT }}