Skip to content

Commit

Permalink
ci: inject HOME variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsu committed May 9, 2024
1 parent 6ba8252 commit e9a4ed5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,24 @@ jobs:
bundler-cache: true
- run: gem update --system 3.4.22 # The latest of Ruby 2.x support
- run: |
mkdir ~/.dg
cat<<EOF > ~/.dg/credentials
export HOME=${{ env.RUNNER_TEMP }}
mkdir $HOME/.dg
cat<<EOF > $HOME/.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: ${{ env.RUNNER_TEMP }}
- run: bundle exec dg deploy spec/fixtures/sample.aab
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ env.RUNNER_TEMP }}
- run: bundle exec dg deploy spec/fixtures/sample.ipa
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ env.RUNNER_TEMP }}

instrument-ruby3:
strategy:
Expand Down Expand Up @@ -115,16 +120,21 @@ jobs:
bundler-cache: true
- run: gem update --system
- run: |
mkdir ~/.dg
cat<<EOF > ~/.dg/credentials
export HOME=${{ env.RUNNER_TEMP }}
mkdir $HOME/.dg
cat<<EOF > $HOME/.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: ${{ env.RUNNER_TEMP }}
- run: bundle exec dg deploy spec/fixtures/sample.aab
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ env.RUNNER_TEMP }}
- run: bundle exec dg deploy spec/fixtures/sample.ipa
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
HOME: ${{ env.RUNNER_TEMP }}

0 comments on commit e9a4ed5

Please sign in to comment.