Skip to content

Commit

Permalink
add rails master key secret location to github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
harsohailB committed May 11, 2022
1 parent 55832af commit 76f7296
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ on:
branches:
- main
paths-ignore:
- 'doc/**'
- '**/*.md'
- 'bin/**'
- "doc/**"
- "**/*.md"
- "bin/**"
pull_request:
branches:
- main
paths-ignore:
- 'doc/**'
- '**/*.md'
- 'bin/**'
- "doc/**"
- "**/*.md"
- "bin/**"

jobs:
docker:
Expand All @@ -32,3 +32,5 @@ jobs:
run: docker-compose exec -T web rails db:reset
- name: Test
run: docker-compose exec -T web bundle exec rspec spec
env:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
14 changes: 7 additions & 7 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@ on:
branches:
- main
paths-ignore:
- 'doc/**'
- '**/*.md'
- 'bin/**'
- "doc/**"
- "**/*.md"
- "bin/**"
pull_request:
branches:
- main
paths-ignore:
- 'doc/**'
- '**/*.md'
- 'bin/**'
- "doc/**"
- "**/*.md"
- "bin/**"

jobs:
rspec:

runs-on: ubuntu-latest

services:
Expand Down Expand Up @@ -69,6 +68,7 @@ jobs:
POSTGRES_HOST_AUTH_METHOD: trust
RUN_SIMPLECOV: true
CC_TEST_REPORTER_ID: 31464536e34ab26588cb951d0fa6b5898abdf401dbe912fd47274df298e432ac
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
Expand Down

0 comments on commit 76f7296

Please sign in to comment.