Sha256: 92f5f0d4ae23459b7a6b82b0fc2392961316ac065b24c34cce05ff20d6be8d93

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

name: CI

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

jobs:
  rubocop:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Setup ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.0
          bundler-cache: true
      - name: Run static code analysis
        run: bundle exec rubocop
  unit:
    runs-on: ubuntu-latest
    needs: rubocop
    strategy:
      matrix:
        ruby:
          - "2.6"
          - "2.7"
          - "3.0"
          - "3.1"
          - "3.2"
          - "3.3"
    name: Ruby ${{ matrix.ruby }}
    steps:
      - uses: actions/checkout@v4
      - name: Setup ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: Generate the parser
        run: bundle exec rake gen_parser
      - name: Run tests without uploading code coverage
        if: ${{ matrix.ruby != '3.0' }}
        run: bundle exec rake
      - name: Run tests and upload coverage to Code Climate
        if: ${{ matrix.ruby == '3.0' }}
        uses: paambaati/codeclimate-action@v5.0.0
        env:
          CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TOKEN }}
        with:
          coverageCommand: bundle exec rake

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffy-1.0.0 .github/workflows/ci.yml