Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Fix tests. Update docker-test-runner image - create pg_stat_statement…
Browse files Browse the repository at this point in the history
…s in fixtures database.
  • Loading branch information
lesovsky committed May 18, 2021
1 parent 53ee1b5 commit 4462e58
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
container: weaponry/pgscv-test-runner:v0.0.5
container: weaponry/pgscv-test-runner:v0.0.6

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
container: weaponry/pgscv-test-runner:v0.0.5
container: weaponry/pgscv-test-runner:v0.0.6
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion testing/docker-test-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# __release_tag__ gosec v2.5.0 was released 2020-10-26
FROM postgres:13.1

LABEL version="v0.0.5"
LABEL version="v0.0.6"

# install dependencies
RUN apt-get update && \
Expand Down
7 changes: 4 additions & 3 deletions testing/docker-test-runner/fixtures.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
-- schema fixtures
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
SELECT pg_stat_statements_reset();

CREATE ROLE pgscv WITH LOGIN SUPERUSER;

CREATE DATABASE pgscv_fixtures OWNER pgscv;
\c pgscv_fixtures pgscv

-- create pg_stat_statements
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
SELECT pg_stat_statements_reset();

-- create table with invalid index
CREATE TABLE orders (id SERIAL PRIMARY KEY, name TEXT, status INT);
CREATE INDEX orders_status_idx ON orders (status);
Expand Down

0 comments on commit 4462e58

Please sign in to comment.