Skip to content

Update to Stripe CLI 1.33.0 #33

Update to Stripe CLI 1.33.0

Update to Stripe CLI 1.33.0 #33

Workflow file for this run

name: ci
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
cancel-in-progress: true
on:
workflow_dispatch:
push:
# branches:
# - main
# tags:
# - v*.*.*
pull_request:
# types: [opened, synchronize]
# branches:
# - '*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.2", "3.3", "3.4", "head"]
steps:
- uses: actions/checkout@v4
- run: rm Gemfile.lock
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler: latest
bundler-cache: true
- name: Run tests
run: bundle exec rake test
package:
needs: [ "test" ]
name: "package (${{ matrix.platform }})"
strategy:
fail-fast: false
matrix:
platform:
- "ruby"
- "arm64-darwin"
- "arm64-linux"
- "x86_64-darwin"
- "x86_64-linux"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rm Gemfile.lock
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler: latest
bundler-cache: true
- run: "bundle exec rake gem:${{matrix.platform}}"
- uses: actions/upload-artifact@v4
with:
name: gem-${{matrix.platform}}
path: pkg
retention-days: 1
install-ruby:
name: "install (ruby)"
needs: [ "package" ]
runs-on: ubuntu-latest
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
- uses: actions/download-artifact@v4
with:
name: gem-ruby
path: pkg
- run: "gem install pkg/stripe-cli-ruby-*.gem"
- run: "stripe 2>&1 | fgrep 'ERROR: Cannot find the stripe cli executable'"
install-native:
name: "install (${{ matrix.platform }})"
needs: [ "package" ]
strategy:
fail-fast: false
matrix:
ruby: [ "3.4" ]
platform:
- "arm64-darwin"
# - "arm64-linux"
- "x86_64-darwin"
- "x86_64-linux"
include:
- { platform: arm64-darwin, runs_on: macos-14 }
# - { platform: arm64-linux, docker_platform: "--platform=linux/arm64/v8" }
- { platform: x86_64-darwin, runs_on: macos-13 }
- { platform: x86_64-linux, docker_tag: "-alpine", bootstrap: "apk add build-base &&" }
runs-on: ${{ matrix.runs_on || 'ubuntu-latest' }}
steps:
- uses: actions/download-artifact@v4
with:
name: gem-${{ matrix.platform }}
path: pkg
- if: ${{ matrix.runs_on }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- if: ${{ matrix.runs_on }}
run: "gem install pkg/stripe-cli-ruby-*.gem"
- if: ${{ matrix.runs_on }}
run: "stripe --help"
- if: ${{ (! matrix.runs_on) && matrix.docker_platform }}
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- if: ${{ ! matrix.runs_on }}
run: |
docker run --rm -v $PWD:/ruby-strie-cli -w /ruby-strie-cli \
${{ matrix.docker_platform }} ruby:${{ matrix.ruby }}${{ matrix.docker_tag }} \
sh -c "
${{ matrix.bootstrap }}
gem install pkg/stripe-cli-ruby-*.gem
stripe --help
"