Skip to content

feat:Adding github actions #4

feat:Adding github actions

feat:Adding github actions #4

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.23.1'
- name: Build
run: go build -v ./...
checks:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.23.1'
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