Skip to content

Commit

Permalink
chore: Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dmage committed Jun 29, 2023
1 parent d05d923 commit b95b388
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on: [pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Verify go.mod
run: go mod tidy && git diff --exit-code
build:
name: Build
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Go Build
run: make build
tests:
name: Tests
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Tests
run: go test -v ./...

0 comments on commit b95b388

Please sign in to comment.