Sha256: 74e7a750eba669b3961ae90c63e15fc1d221aeb3f4666d31d79fc4e295136aad

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

name: Tests

on:
  pull_request: {}
  push:
    branches:
      - master

jobs:
  rubocop:
    env:
      BUNDLE_WITHOUT: release
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install Ruby ${{ matrix.ruby }}
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: "3.3"
          bundler-cache: true
      - name: Run Rubocop
        run: bundle exec rake rubocop
  test:
    strategy:
      fail-fast: false
      matrix:
        os:
          - windows-latest
          - ubuntu-latest
          - macos-latest
        puppet:
          - "~> 7.0"
          - "~> 8.0"
        include:
          - puppet: "~> 7.0"
            ruby: 2.7
          - puppet: "~> 8.0"
            ruby: 3.2

    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically
        env:
          PUPPET_VERSION: ${{ matrix.puppet }}
      - name: Set long paths on Windows
        if: ${{ matrix.os == 'windows-latest' }}
        run: Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -value 1
      - env:
          PUPPET_VERSION: ${{ matrix.puppet }}
        run: bundle exec rake full_tests

  tests:
    needs:
      - rubocop
      - test
    runs-on: ubuntu-latest
    name: Test suite
    steps:
      - run: echo Test suite completed

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onceover-4.0.0 .github/workflows/tests.yaml