Skip to content

Bump rubocop from 1.52.1 to 1.54.1 #154

Bump rubocop from 1.52.1 to 1.54.1

Bump rubocop from 1.52.1 to 1.54.1 #154

Workflow file for this run

name: CI
on: [push]
jobs:
Spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@v2
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rubocop
Typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec solargraph typecheck
Format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rbprettier --check '**/*.{graphql,rb,json,yml,md}'
Tests:
name: "Test with Ruby ${{ matrix.ruby }}"
strategy:
matrix:
include:
- ruby: 3.2
- ruby: 3.1
- ruby: 3.0
- ruby: 2.7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec
- uses: codecov/codecov-action@v3
with:
files: .resultset.json
directory: coverage
GraphQL_Schema_Dump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rake graphql:schema:dump && bundle exec rbprettier --write '**/*.{graphql,rb,json,yml,md}'
- run: git status
- name: Check that nothing changed
run: git diff-index --quiet HEAD --