Skip to content

chore: add sqlc to nix #337

chore: add sqlc to nix

chore: add sqlc to nix #337

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
tags-ignore:
- '**'
permissions:
contents: read
pull-requests: read
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up database
run: docker compose -f docker-compose-test.yml up -d
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21.6'
cache: false
- name: Generate Swagger
run: go install github.com/swaggo/swag/cmd/swag@latest && source ./scripts/swagger-gen.sh
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
skip-pkg-cache: true
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./... -p 1