feat(deploy): add Dockerfile and docker-compose with postgres #45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| # Pinned exactly, not 1.25.x. The go.mod toolchain directive names | |
| # go1.25.12; CI must use the same build the toolchain pin produces. | |
| go-version: '1.25.12' | |
| check-latest: false | |
| - name: Build | |
| run: go build ./... | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Gofmt | |
| run: test -z "$(gofmt -l .)" || (gofmt -l . && exit 1) | |
| - name: Test | |
| run: go test ./... |