Switch to GitHub actions #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ruby Test π | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| name: π Test with Ruby ${{ matrix.ruby-version }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby-version: | |
| - '3.1.7' | |
| - '3.2.8' | |
| - '3.3.8' | |
| - '3.4.4' | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: π Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: π οΈ Setup Ruby ${{ matrix.ruby-version }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: βοΈ Set up test cloud | |
| run: | | |
| export CLOUDINARY_URL=$(bash tools/get_test_cloud.sh) | |
| echo "CLOUDINARY_URL=$CLOUDINARY_URL" >> $GITHUB_ENV | |
| echo "cloud_name: $(echo $CLOUDINARY_URL | cut -d'@' -f2)" | |
| - name: π§ͺ Run tests | |
| run: bundle exec rspec --format documentation --color | |
| env: | |
| CLOUDINARY_URL: ${{ env.CLOUDINARY_URL }} |