fog/fog-google

View on GitHub
.github/workflows/unit.yml

Summary

Maintainability
Test Coverage
name: unit-tests

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

# Cancel in-progress jobs of the same ref or run_id
concurrency:
  group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
  cancel-in-progress: true

jobs:
  test-unit:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: [ '3.0', '3.1', '3.2', 'head', 'truffleruby-head']

    steps:
      - uses: actions/checkout@v4
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically
      - name: Install dependencies
        run: bundle install
      - name: Run tests
        run: bundle exec rake