Sha256: 5bbfddca63b322e8dff3c0d69bbb80b603dbe7331e4e8c6f6026bd2a740cb5f0

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

name: Test
on:
  push:
    branches:
      - '**'
  schedule:
    - cron: '0 0 * * MON'

concurrency:
  group: '${{ github.ref }}'
  cancel-in-progress: true

jobs:
  test:
    name: 'Test the gem (Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }})'
    runs-on: ubuntu-22.04
    timeout-minutes: 5
    strategy:
      fail-fast: false
      matrix:
        ruby: ['2.7']
        rails: ['5.2', '6.1', '7.1']
    env:
      BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
    steps:
      - uses: actions/checkout@v4

      - name: Install the correct Ruby version
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
          rubygems: '3.4.22'

      - name: Prepare the virtual environment
        uses: hausgold/actions/ci@master
        with:
          clone_token: '${{ secrets.CLONE_TOKEN }}'
          settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
          settings: '${{ github.repository }}'
          target: ci/gem-test

      - name: Setup mDNS
        run: setup-mdns

      - name: Start the dependent services
        run: docker-compose up -d db

      - name: Wait for database to be ready
        run: await-tcp-open 'db.alarmable.local' '5432'

      - name: Run the gem tests
        run: make test

      - name: Upload the code coverage report
        run: coverage

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alarmable-1.2.4 .github/workflows/test.yml
alarmable-1.2.3 .github/workflows/test.yml
alarmable-1.2.2 .github/workflows/test.yml
alarmable-1.2.1 .github/workflows/test.yml