Skip to content

Integration

Integration #10

Workflow file for this run

# Code generated by craft; DO NOT EDIT.
name: Integration
run-name: Integration
on:
pull_request:
push:
branches:
- main
- staging
- develop
- v[0-9]+.x
- v[0-9]+.[0-9]+.x
workflow_dispatch:
jobs:
go-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
cache: false
go-version-file: go.mod
token: ${{ secrets.GITHUB_TOKEN }}
- uses: golangci/golangci-lint-action@v4
with:
args: --config .golangci.yml --timeout 240s --fast --sort-results --out-format colored-line-number
go-test:
strategy:
fail-fast: false
matrix:
os:
- on: macos-latest
args: CGO_ENABLED="0"
- on: ubuntu-latest
args: CGO_ENABLED="0"
- on: windows-latest
args: env CGO_ENABLED="0"
runs-on: ${{ matrix.os.on }}
env:
OS: ${{ matrix.os.on }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
token: ${{ secrets.GITHUB_TOKEN }}
- run: ${{ matrix.os.args }} go test ./... -coverpkg="./..." -covermode="count" -coverprofile="coverage.out"
- uses: codecov/codecov-action@v4
if: ${{ ! startsWith(github.base_ref, 'dependabot') }} # ignore codecov on dependabot branches
with:
codecov_yml_path: codecov.yml
disable_search: true
env_vars: OS
fail_ci_if_error: true
file: coverage.out
slug: ${{ github.repository }}
token: ${{ secrets.CODECOV_TOKEN }}