diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index d3996e6..64f1013 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -1,9 +1,9 @@ name: CI on: - push: pull_request: + push: branches: - - master + - main jobs: unit-openapi-ruby-sdk: @@ -12,13 +12,16 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: - ruby-version: "3.3.6" + ruby-version: "3.1" - name: Install dependencies - uses: gradle/gradle-build-action@v2 + run: bundle install - name: Execute tests run: bundle exec rspec + env: + UNIT_TOKEN: ${{ secrets.UNIT_TOKEN }} + TEST_PLAID_TOKEN: ${{ secrets.TEST_PLAID_TOKEN }} - name: Execute Rake build run: bundle exec rake build diff --git a/.github/workflows/publish-gem.yaml b/.github/workflows/publish-gem.yaml deleted file mode 100644 index 032afcc..0000000 --- a/.github/workflows/publish-gem.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: Publish gem to RubyOrgs -on: - release: - types: [created] -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 - with: - ruby-version: "3.3.6" - - - name: Install dependencies - uses: bundle install - - - name: Execute Rake build - run: bundle exec rake build - - - name: Publish to RubyGems - run: | - touch $HOME/pkg/credentials - chmod 0600 $HOME/pkg/credentials - printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/pkg/credentials - gem push ./pkg/*.gem - env: - GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"