Skip to content

Commit

Permalink
chore: Use env variables instead of crendential file stubbing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsu committed May 9, 2024
1 parent 6b2da9c commit 08ce9c6
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,21 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- run: gem update --system 3.4.22 # The latest of Ruby 2.x support
- id: home
run: echo "result=$RUNNER_TEMP" >> $GITHUB_OUTPUT
- run: |
mkdir ${{ steps.home.outputs.result }}/.dg
cat<<EOF > ${{ steps.home.outputs.result }}/.dg/credentials
{ "name": "owner_test_token", "token": "owner_test_token" }
EOF
- run: bundle exec dg deploy spec/fixtures/sample.apk
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ steps.home.outputs.result }}
DG_USER_NAME: 'owner_test'
DG_TOKEN: 'owner_test'
- run: bundle exec dg deploy spec/fixtures/sample.aab
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ steps.home.outputs.result }}
DG_USER_NAME: 'owner_test'
DG_TOKEN: 'owner_test'
- run: bundle exec dg deploy spec/fixtures/sample.ipa
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ steps.home.outputs.result }}
DG_USER_NAME: 'owner_test'
DG_TOKEN: 'owner_test'

instrument-ruby3:
strategy:
Expand Down Expand Up @@ -119,22 +115,18 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- run: gem update --system
- id: home
run: echo "result=$RUNNER_TEMP" >> $GITHUB_OUTPUT
- run: |
mkdir ${{ steps.home.outputs.result }}/.dg
cat<<EOF > ${{ steps.home.outputs.result }}/.dg/credentials
{ "name": "owner_test_token", "token": "owner_test_token" }
EOF
- run: bundle exec dg deploy spec/fixtures/sample.apk
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ steps.home.outputs.result }}
DG_USER_NAME: 'owner_test'
DG_TOKEN: 'owner_test'
- run: bundle exec dg deploy spec/fixtures/sample.aab
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ steps.home.outputs.result }}
DG_USER_NAME: 'owner_test'
DG_TOKEN: 'owner_test'
- run: bundle exec dg deploy spec/fixtures/sample.ipa
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ steps.home.outputs.result }}
DG_USER_NAME: 'owner_test'
DG_TOKEN: 'owner_test'

0 comments on commit 08ce9c6

Please sign in to comment.