Move env variable to on place in gh workflow config

This commit is contained in:
Brenda Wallace
2021-01-04 22:32:20 +13:00
committed by Brenda Wallace
parent 9e26b3b51a
commit ce88f6e43e

View File

@@ -37,6 +37,18 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
APP_DOMAIN_NAME: localhost:3000
APP_PROTOCOL: http
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
DATABASE_URL: postgres://postgres:postgres@localhost:5432/growstuff_test
DEVISE_SECRET_KEY: secret
ELASTIC_SEARCH_VERSION: "7.5.1-amd64"
GROWSTUFF_EMAIL: "noreply@test.growstuff.org"
GROWSTUFF_SITE_NAME: "Growstuff (travis)"
RAILS_ENV: test
RAILS_SECRET_TOKEN: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
RAILS_SECRET_TOKEN: supersecret
steps:
- name: Checkout this repo
@@ -96,20 +108,7 @@ jobs:
./cc-test-reporter before-build
- name: Prepare database for testing
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/growstuff_test
DEVISE_SECRET_KEY: secret
RAILS_SECRET_TOKEN: supersecret
RAILS_ENV: test
run: |
bundle exec rails db:prepare
run: bundle exec rails db:prepare
- name: Run rspec (report results to Percy.io and CodeClimate)
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/growstuff_test
DEVISE_SECRET_KEY: secret
RAILS_SECRET_TOKEN: supersecret
APP_DOMAIN_NAME: localhost:3000
APP_PROTOCOL: http
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: bundle exec rspec spec && ./cc-test-reporter after-build