Sha256: dc91fb4a0bf7022c75b405e5d70732af6f0d962ef3411ed4c6393e22d88ffd6d

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

name: Main
on:
  push:
    branches:
      - main
      - master

  pull_request:
    types: [opened, synchronize, reopened]

jobs:
  base:
    name: Ruby ${{ matrix.ruby }}
    runs-on: ubuntu-20.04
    strategy:
      fail-fast: false
      matrix:
        ruby: ["2.7", "3.0", "3.1", "3.2"]

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      # This setup is not compatible with the way Travis CI was
      # setup, so the cache will only work for the root folder.
      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - name: Rake
        run: bundle exec rake

      - uses: codecov/codecov-action@v2

  # Does not work. The action runs in Ruby 2.6, which is not compatible with
  # the gem and fails to install.
  # This is very strange considering that the source of the action uses a
  # Dockerfile with Ruby 2.7. However, I don't want to spend time to fix this
  # in a passively maintained gem.
  #
  # lint:
  #   runs-on: ubuntu-latest
  #   steps:
  #     - name: standardrb
  #       env:
  #         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  #       uses: amoeba/standardrb-action@v2
  #   permissions:
  #     checks: write
  #     contents: read

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roadie-5.2.0 .github/workflows/main.yml