mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-25 01:13:03 -04:00
Move env variable to on place in gh workflow config
This commit is contained in:
committed by
Brenda Wallace
parent
9e26b3b51a
commit
ce88f6e43e
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user