feat(deps)!: switch to Uber's maintained fork of gomock #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: [push] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18 | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54 | |
env: | |
VERBOSE: "true" | |
tidy: | |
name: Tidy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18 | |
- name: Check if mods are tidy | |
run: make check-tidy | |
generate: | |
name: Generate | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18 | |
- name: Check if generate results are up to date | |
run: make check-generate | |
cov: | |
name: Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18 | |
- name: Publish coverage | |
uses: paambaati/codeclimate-action@v4.0.0 | |
env: | |
VERBOSE: "true" | |
GOMAXPROCS: 4 | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: make cov | |
prefix: github.com/${{ github.repository }} | |
coverageLocations: | | |
${{ github.workspace }}/coverage.out:gocov | |
test: | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
go_version: | |
- "1.18" | |
- "1.19" | |
- "1.20" | |
- "1.21" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go_version }} | |
check-latest: true | |
- name: Run tests | |
run: make test | |
env: | |
VERBOSE: "true" | |
release-please: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
outputs: | |
release_created: ${{ steps.release-please.outputs.release_created }} | |
version: ${{ steps.release-please.outputs.version }} | |
steps: | |
- uses: krystal/release-please-manifest-action@v1 | |
id: release-please | |
with: | |
app-id: ${{ vars.RELEASE_PLEASE_GITHUB_APP_ID }} | |
private-key: ${{ secrets.RELEASE_PLEASE_GITHUB_APP_PRIVATE_KEY }} |