Skip to content

feat: drafts workspace implementation #38

feat: drafts workspace implementation

feat: drafts workspace implementation #38

Workflow file for this run

name: API CI
on:
pull_request:
branches: [main]
paths:
- 'api/**'
- '.github/workflows/api-ci.yml'
defaults:
run:
working-directory: api
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: api/go.mod
cache-dependency-path: api/go.sum
- name: Verify dependencies
run: go mod verify
- name: Check formatting
run: test -z "$(gofmt -l .)"
- name: Build
run: go build -v ./cmd/api/...
- name: Run tests
run: go test -v -race -count=1 ./...