Sha256: 20821a7c935c5b4f5f68cdd1dc5fe9a79e2d2f884be23ed26367f7c80cdd90a1

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 KB

Contents

name: CI
permissions:
  contents: read

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  rubocop:
    name: RuboCop
    runs-on: ubuntu-latest
    env:
      BUNDLE_ONLY: rubocop
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Setup Ruby and install gems
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.3.0
          bundler-cache: true
      - name: Run Rubocop
        run: bundle exec rubocop --parallel
  test:
    name: ${{ format('Unit tests (Ruby {0})', matrix.ruby-version) }}
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version:
          - "3.1"
          - "3.2"
          - "3.3"
          - "3.4"
    continue-on-error: true
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Setup Ruby and install gems
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true
      - name: Configure Git
        run: |
          git config --global user.name $NAME
          git config --global user.email $EMAIL
        env:
          NAME: "George Costanza"
          EMAIL: "george.costanza@vandelay.com"
      - name: Run tests
        run: bundle exec rake test

Version data entries

6 entries across 6 versions & 6 rubygems

Version Path
lolcommits-lolsrv-0.6.1 .github/workflows/ci.yml
lolcommits-loltext-0.5.1 .github/workflows/ci.yml
lolcommits-sample_plugin-0.5.1 .github/workflows/ci.yml
lolcommits-uploldz-0.6.1 .github/workflows/ci.yml
lolcommits-term_output-0.5.1 .github/workflows/ci.yml
lolcommits-dotcom-0.5.1 .github/workflows/ci.yml