Skip to content

Commit

Permalink
Merge pull request #6 from logan-bobo/logan-bobo-patch-1
Browse files Browse the repository at this point in the history
create ci.yml
  • Loading branch information
logan-bobo authored Dec 4, 2023
2 parents 212fc0e + 8f2cf0a commit 648d03c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Go CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.2'

- name: lint
run: |
test -z $(gofmt -l .)
go vet
- name: Test
run: go test -v ./...

- name: Build
run: go build -v ./...

0 comments on commit 648d03c

Please sign in to comment.