Skip to content

CI

CI #641

Workflow file for this run

name: CI
on:
merge_group:
push:
branches:
- 'main'
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: check
run: make fix
- name: Test
run: make test
- name: Test Sanity
run: make test-sanity
- uses: codecov/codecov-action@v3
with:
files: cover.out
functionalities: fixes
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
go-apidiff:
name: go-apidiff
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Run go-apidiff
uses: joelanford/go-apidiff@main