Sha256: e55d3b047a27d7a52a86cb5b1571b8e957c270b7170122f48040b4a8c2102415

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

name: Tests

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  workflow_dispatch:
  schedule:
    # 00:00 on the 1st of every month
    - cron: '0 0 1 * *'
jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        ruby: ['3.1', '3.2', '3.3', 'jruby-9.4']
    env:
      BUNDLE_WITHOUT: optional
    steps:
    - uses: actions/checkout@v4
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - name: Tests for Ruby ${{ matrix.ruby }}
      run: bundle exec rake
  coverage:
    needs: test
    runs-on: ubuntu-latest
    env:
      BUNDLE_WITHOUT: optional
    steps:
    - uses: actions/checkout@v4
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
    - name: Publish code coverage
      uses: paambaati/codeclimate-action@v9
      env:
        CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
      with:
        coverageCommand: bundle exec rake
  yard:
    runs-on: ubuntu-latest
    env:
      BUNDLE_WITHOUT: optional
    steps:
    - uses: actions/checkout@v4
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
    - name: Build YARD docs
      run: bundle exec yard doc --fail-on-warning

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-units-4.1.0 .github/workflows/tests.yml