Skip to content

clean up ci

clean up ci #64

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
main:
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
GO_VERSION: '1.20'
GOLANGCI_LINT_VERSION: v1.62.0
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ^${{ env.GO_VERSION }}
- name: Check and get dependencies
run: |
make tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: --verbose
version: ${{ env.GOLANGCI_LINT_VERSION }}
- run: make test
- run: make install