Sha256: 77669ca97e001dca0dab97d57540c1337e3744fbcc4e3c592c2e5e7e7333e5b8

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

name: Tests

on:
  pull_request:
    branches:
      - master
    paths-ignore:
      - 'README.md'
  push:
    branches:
      - master
    paths-ignore:
      - 'README.md'

jobs:
  unit_tests:
    name: Unit Tests
    # Homemade support for [ci skip] no longer needed
    # https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
    # if: "contains(github.event.commits[0].message, '[ci skip]') == false"
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-latest
        ruby:
          - "3.0"
          - "3.1"
        gemfile:
          - gemfiles/contracts_17_0.gemfile
        allow_failures:
          - false
        include:
          - os: ubuntu-latest
            ruby: "2.7"
            gemfile: gemfiles/contracts_16_0.gemfile
            allow_failures: false
          - os: ubuntu-latest
            ruby: "ruby-head"
            gemfile: gemfiles/contracts_17_0.gemfile
            allow_failures: true
    env:
      BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
      ALLOW_FAILURES: "${{ matrix.allow_failures }}"
    runs-on: ${{ matrix.os }}
    continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: Test
        run: bundle exec rake spec || $ALLOW_FAILURES

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
contracted_value-0.1.1 .github/workflows/tests.yaml