Skip to content

Commit

Permalink
ci: add format, lint, build test jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Nov 3, 2024
1 parent 93edc4d commit 1e0d576
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Go

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

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install Dependencies
run: go get .
- name: Check Format
run: test -z "$(gofmt -l . | tee /dev/stderr)"
- name: Lint
run: go vet
- name: Build
run: go build -v ./...
- name: Test
run: go test

0 comments on commit 1e0d576

Please sign in to comment.