Skip to content

fix github actions

fix github actions #2

Workflow file for this run

name: Go CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Build
run: go build -v ./...
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.22'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.0
- name: Go Format
uses: Jerome1337/gofmt-action@v1.0.5
with:
gofmt-path: './src'
gofmt-flags: '-l -d'
- name: Test with the Go CLI
run: go test