Skip to content

Commit

Permalink
Add CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
tchajed committed Jul 20, 2024
1 parent 2fe8317 commit d75fa89
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
test:
strategy:
matrix:
go-version: ["stable"]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install Goose
run: |
go install github.com/goose-lang/goose/cmd/goose@latest
- name: Install dependencies
run: |
go get -t ./...
- name: Check style
run: |
gofmt -w .
git diff --exit-code
- name: Test
run: |
./scripts/test.sh

0 comments on commit d75fa89

Please sign in to comment.