Skip to content

Feat: add runtime validation for required strings or nullable ptr fields and for enums #15

Feat: add runtime validation for required strings or nullable ptr fields and for enums

Feat: add runtime validation for required strings or nullable ptr fields and for enums #15

Workflow file for this run

name: verify
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
jobs:
integration-tests:
name: Run Integration Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpassword
POSTGRES_DB: valkyrie_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
cache-dependency-path: '**/go.sum'
- name: Vet packages
run: make vet
- name: Run compiler unit tests
run: make test
- name: Run Integration Tests
env:
PG_DATABASE_URL: ${{ secrets.PG_DATABASE_URL }}
SQLITE_DATABASE_URL: ${{ secrets.SQLITE_DATABASE_URL }}
run: make integration-test