Skip to content

Feat/improve lint settings #5

Feat/improve lint settings

Feat/improve lint settings #5

Workflow file for this run

name: Go CI
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main, develop]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.22']
env:
GO111MODULE: "on"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Cache Go Modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
${{ runner.os }}-go-
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
args: --timeout=30m
- name: Install Dependencies
run: |
go mod tidy
go mod download
- name: Run Tests with Coverage
run: |
go test -v -count=1 -cover -run ^TestMock ./...