added lint workflow #1
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: Go Lint and Test | |
on: | |
push: | |
tags: | |
- 'v*' # match tags that start with v (like v1.0.0) | |
branches: | |
- release | |
- master | |
- dev | |
paths: | |
- 'src/**' | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.24' | |
cache: true | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.64 | |
# test: todo | |
# name: test go | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# with: | |
# fetch-depth: 0 | |
# | |
# - uses: actions/setup-go@v5 | |
# with: | |
# go-version: '1.24' | |
# cache: true | |
# | |
# # docker setup for running tests | |
# - name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v3 | |
# | |
# - name: Install dependencies | |
# run: go mod download | |
# | |
# - name: Run test | |
# run: | | |
# go test ./service/jobs/ -v -run Test500Jobs |