Skip to content

Merge pull request #163 from radiofrance/renovate/docker-setup-buildx… #329

Merge pull request #163 from radiofrance/renovate/docker-setup-buildx…

Merge pull request #163 from radiofrance/renovate/docker-setup-buildx… #329

Workflow file for this run

---
name: Test (Golang)
on: # yamllint disable-line rule:truthy
pull_request:
types: [opened, synchronize]
paths:
- .github/workflows/test.golang.yml
- go.*
- cmd/**
- pkg/**
push:
branches: [main]
jobs:
go-test:
name: Golang test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version
go-version: '1.20'
check-latest: true
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Run golang tests
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
- name: Archive code coverage results
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: golang-coverage-report
path: coverage.out
retention-days: 1
codecov:
name: Codecov
runs-on: ubuntu-latest
needs: [go-test]
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: golang-coverage-report
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4