ci(sqltest): Add github action workflow for sql tests (#2977)

pull/2980/head
Timothy Messier 3 years ago committed by GitHub
parent ac3543bdfb
commit 5c19dba3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,19 @@
name: test-sql
on:
- workflow_dispatch
- push
- workflow_call
jobs:
test-sql:
runs-on: ${{ fromJSON(vars.RUNNER) }}
strategy:
matrix:
postgres-version: [ latest, 11-alpine, 12-alpine, 13-alpine, 14-alpine, 15-alpine ]
name: SQL Tests ${{ matrix.postgres-version }}
steps:
- uses: actions/checkout@v3
- name: Run SQL PgTap Tests
run: |
make test-sql POSTGRES_DOCKER_IMAGE_BASE=docker.mirror.hashicorp.services/postgres PG_DOCKER_TAG=${{ matrix.postgres-version }}

@ -53,7 +53,7 @@ test:
-v "$(CWD)/../schema/migrations":/migrations \
-v "$(CWD)/initdb.d":/docker-entrypoint-initdb.d/ \
$(POSTGRES_DOCKER_IMAGE)
@docker run -it --rm \
@docker run --rm \
--name test \
--link $(SQL_TEST_CONTAINER_NAME):db \
-e DATABASE=boundary \

Loading…
Cancel
Save