From c5fa1dac83f5befdfc4dfee0d58e58d7d71c3efa Mon Sep 17 00:00:00 2001 From: Marcelo Jacobus Date: Tue, 16 Aug 2022 17:03:33 -0300 Subject: [PATCH] Add rubocop check --- .github/workflows/rubocop.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/rubocop.yml diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 0000000..0d20937 --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,26 @@ +name: Rubocop + +on: + push: + branches: + - master + pull_request: + branches: + - '*' +jobs: + build: + runs-on: ubuntu-latest + name: Rubocop + strategy: + matrix: + ruby: + - '3.0.2' + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Run the default task + run: bundle exec rubocop -A