Skip to content

[repo-updater] update golang #271

[repo-updater] update golang

[repo-updater] update golang #271

Workflow file for this run

name: Pull Request
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
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: Run lint
run: mage go:lint
- name: Run test
run: mage go:unitTest
- name: Upload test coverage to codecov
uses: elisa-actions/codecov-action@v4-elisa
with:
url: https://codecov.csf.elisa.fi
- name: Build packages
run: mage go:crossBuild
- name: Notify failure
if: |
github.event.pull_request.draft == false &&
failure()
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_TEXT: "${{ github.repository }} PR build. Please check [here](${{ github.event.pull_request.html_url }}/checks)."
run: send-to-mattermost
automerge:
needs: [build]
permissions:
pull-requests: write
contents: write
runs-on: elisa-normal
timeout-minutes: 15
steps:
- name: Automerge dependabot PR
uses: elisa-actions/github-action-merge-dependabot@v3
with:
target: minor
github-token: ${{ secrets.DOPS_SRE_PAT }}