Skip to content

chore: fix and run all CI test properly #2

chore: fix and run all CI test properly

chore: fix and run all CI test properly #2

Workflow file for this run

name: Test Unit
on:
pull_request:
paths-ignore:
- '**.md'
push:
paths-ignore:
- '**.md'
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
name: 'Lint Go Code'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
**/*.go
*/go.mod
*/go.sum
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: '1.21'
- name: Run Lint Tests
if: env.GIT_DIFF
env:
GOTOOLCHAIN: local+path
GOSUMDB: off
run: make test-unit