name: CI on: push: branches: [ main ] pull_request: jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.7 - name: StandardRB Lint run: | gem install standardrb standardrb --no-fix --format github tests: runs-on: ubuntu-latest strategy: fail-fast: false matrix: ruby: - "2.5" - "2.6" - "2.7" - "3.0" - "jruby-9.2" - "jruby-9.3" - "truffleruby-20" - "truffleruby-21" - "truffleruby+graalvm-21" steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - name: Run tests run: | bundle exec rspec --format RSpec::Github::Formatter