Skip to content

Commit

Permalink
test: Add instrument tests to check deploy-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsu committed May 9, 2024
1 parent 7355660 commit 6389726
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 6 deletions.
44 changes: 42 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ jobs:
ruby_version:
- 2.6
- 2.7
services:
app:
image: ghcr.io/deploygate/deploygate-mock-server:main
ports:
- 3000/tcp
options: >-
--health-cmd "curl -fI http://localhost:3000"
--health-interval 15s
--health-timeout 5s
--health-retries 5
--health-start-period 20s
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -57,7 +68,16 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- run: gem update --system 3.4.22 # The latest of Ruby 2.x support
- run: bundle exec rake
- run: bundle exec rake install
- run: dg deploy spec/fixtures/sample.apk
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
- run: dg deploy spec/fixtures/sample.aab
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
- run: dg deploy spec/fixtures/sample.ipa
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}

instrument-ruby3:
strategy:
Expand All @@ -67,6 +87,17 @@ jobs:
- 3.1
- 3.2
- 3.3
services:
app:
image: ghcr.io/deploygate/deploygate-mock-server:main
ports:
- 3000/tcp
options: >-
--health-cmd "curl -fI http://localhost:3000"
--health-interval 15s
--health-timeout 5s
--health-retries 5
--health-start-period 20s
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -75,4 +106,13 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- run: gem update --system
- run: bundle exec rake
- run: bundle exec rake install
- run: dg deploy spec/fixtures/sample.apk
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
- run: dg deploy spec/fixtures/sample.aab
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
- run: dg deploy spec/fixtures/sample.ipa
env:
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ dg: A command-line interface for DeployGate

## Requirements

*dg* runs with a minimal set of requirements.
- Ruby 2.6+

- Ruby 2.6+ (Depends on [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/))
We will drop old ruby versions with following [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/).

## Installation

Expand All @@ -31,7 +31,7 @@ $ bundle
Or install it yourself as:

```
$ gem 'multi_xml' -v '~> 0.6.0' # Run this only when you are using Ruby 2.x
$ gem install 'multi_xml' -v '~> 0.6.0' # Run this only when you are using Ruby 2.x
$ gem install deploygate
```

Expand Down
1 change: 0 additions & 1 deletion lib/deploygate/commands/deploy/push.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module DeployGate
module Commands
module Deploy
class Push
BASE_URL = 'https://deploygate.com'
COMMAND = 'push'

class << self
Expand Down
Binary file added spec/fixtures/sample.aab
Binary file not shown.
Binary file added spec/fixtures/sample.apk
Binary file not shown.

0 comments on commit 6389726

Please sign in to comment.