Skip to content

Commit

Permalink
fix: update github action to include environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gobeam committed Mar 19, 2022
1 parent 3349682 commit 635d72a
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set Environment Variables
uses: ./.github/actions/setvars
with:
varFilePath: ./.github/variables/myvars.env

services:
postgres:
Expand All @@ -36,16 +31,10 @@ jobs:
with:
node-version: 14.3.0

- name: Set environment variables
uses: allenevans/[email protected]
- name: Set Environment Variables
uses: ./.github/actions/setvars
with:
NODE_ENV: test
DB_TYPE: postgres
DB_HOST: 127.0.0.1
DB_PORT: ${{ job.services.postgres.ports[5432] }}
DB_DATABASE_NAME: truthy_db
DB_USERNAME: truthy_user
DB_PASSWORD: truthypwd
varFilePath: ./.github/variables/myvars.env

- name: Install dependencies
run: npm install
Expand Down

0 comments on commit 635d72a

Please sign in to comment.