Skip to content

fix test

fix test #1

Workflow file for this run

name: migrate
on: push
jobs:
sqlite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build
run: go build -o /usr/local/bin/queryx cmd/queryx/main.go
- name: migrate
env:
QUERYX_ENV: test
run: |
cd internal/migrate
queryx db:migrate --schema sqlite.hcl
- name: migrate again
env:
QUERYX_ENV: test
run: |
cd internal/migrate
sed -i '12i\column "email" { type = string}' sqlite.hcl
queryx db:migrate --schema sqlite.hcl
- name: test
run: |
cd internal/migrate
sqlite3 test.sqlite3 "insert into users(name, email) values('test', 'test@example.com')"