Sha256: 3486697b3b36dff9d7262cd376817efc409ccc929ca1b1d6848b549eca2842c7

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

name: CI
on:
  push:
    branches: [ '**' ]
    tags-ignore: [ '**' ]
  pull_request:
jobs:
  rubocop:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.0'
          bundler-cache: true
      - name: Rubocop
        run: bundle exec rubocop
  build:
    strategy:
      matrix:
        ruby: [ 'jruby-9.2', '2.5', '3.1' ]
        python: [ '3.6', '3.11' ]
        platform: [ ubuntu-20.04, macos-latest, windows-2019 ]
    runs-on: ${{ matrix.platform }}
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python }}
      - name: Run Tests
        run: bundle exec rake test
    env:
      # Workaround JVM bug that causes JRuby to fail: https://bugs.openjdk.org/browse/JDK-8285445
      # See https://github.com/ruby/setup-ruby/issues/339
      # See https://github.com/jruby/jruby/issues/7182#issuecomment-1111610677
      JAVA_OPTS: -Djdk.io.File.enableADS=true

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pygments.rb-2.4.1 .github/workflows/ci.yml
pygments.rb-2.4.0 .github/workflows/ci.yml