Skip to content

docs: add project README #23

docs: add project README

docs: add project README #23

Workflow file for this run

name: Run sqlok tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.23", "1.24", "1.25"]
steps:
- uses: actions/checkout@v4
- uses: ikalnytskyi/action-setup-postgres@v7
- name: Install postgres
env:
PGSQL_SQLOK_PASSWORD: ${{ secrets.PGSQL_SQLOK_PASSWORD }}
PGSERVICE: postgres
run: |
cat ./scripts/postgres/roles.sql | sed "s/PGSQL_SQLOK_PASSWORD/$PGSQL_SQLOK_PASSWORD/g"| psql postgresql://postgres:postgres@localhost:5432/postgres
psql postgresql://postgres:postgres@localhost:5432/postgres -f ./scripts/postgres/database.sql
psql "postgresql://sqlok:$PGSQL_SQLOK_PASSWORD@localhost:5432/sqlok" -c "SELECT 1"
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: |
go mod tidy
- name: Run go unit tests
run: |
make test