syntax changes
This commit is contained in:
21
build.yml
Normal file
21
build.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Golang Linting
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: setup golang
|
||||
uses: https://github.com/actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.21.x'
|
||||
- name: Testing
|
||||
run: |
|
||||
go test -v ./...
|
||||
Reference in New Issue
Block a user