Skip to content

setup golangci-lint and go-test workflow #3

setup golangci-lint and go-test workflow

setup golangci-lint and go-test workflow #3

Workflow file for this run

name: Test go build
on:
pull_request:
branches:
- main
jobs:
go-test-service:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Run go test
run: cd src && go test -v ./...
golangci-lint-service:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest