implement api manager with api configuration & caching support #16
Workflow file for this run
This file contains 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 Gem Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
matrix: | |
ruby-version: [3.1, 3.2] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true # Cache the gems for faster builds | |
- name: Install dependencies | |
run: bundle install | |
- name: Run tests | |
run: bundle exec rspec | |
# Temporarily disable uploading of coverage report as it is failing with error as: | |
# Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run | |
# - name: Upload coverage report | |
# if: matrix.os == 'ubuntu-latest' # Only upload from Ubuntu | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: coverage-report | |
# path: coverage/ |