Skip to content

Commit

Permalink
enhance: attempt to run db tests as part of GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Jan 30, 2023
1 parent 9a2e817 commit 6c8c50e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .env.example-full
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ GRAPHER_DB_PASS=grapher
GRAPHER_DB_HOST=127.0.0.1
GRAPHER_DB_PORT=3307

GRAPHER_TEST_DB_NAME=graphertest
GRAPHER_TEST_DB_USER=graphertest
GRAPHER_TEST_DB_PASS=graphertest
GRAPHER_TEST_DB_HOST=127.0.0.1
GRAPHER_TEST_DB_PORT=3308

WORDPRESS_DB_NAME=wordpress
WORDPRESS_DB_USER=wordpress
WORDPRESS_DB_PASS=wordpress
Expand All @@ -24,4 +30,4 @@ WORDPRESS_API_PASS=admin
GDOCS_PRIVATE_KEY=''
GDOCS_CLIENT_EMAIL=''
GDOCS_CLIENT_ID=''
GDOCS_BASIC_ARTICLE_TEMPLATE_URL=''
GDOCS_BASIC_ARTICLE_TEMPLATE_URL=''
6 changes: 6 additions & 0 deletions .env.example-grapher
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ GRAPHER_DB_USER=grapher
GRAPHER_DB_PASS=grapher
GRAPHER_DB_HOST=127.0.0.1
GRAPHER_DB_PORT=3307

GRAPHER_TEST_DB_NAME=graphertest
GRAPHER_TEST_DB_USER=graphertest
GRAPHER_TEST_DB_PASS=graphertest
GRAPHER_TEST_DB_HOST=127.0.0.1
GRAPHER_TEST_DB_PORT=3308
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ jobs:
testcheck:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3

- uses: ./.github/actions/setup-node-yarn-deps

- name: Install dependencies
run: cp .env.exampe-grapher .env
shell: bash

- name: Build and run db tests
run: make dbtest

testdbcheck:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3
Expand Down

0 comments on commit 6c8c50e

Please sign in to comment.