From 3b181eeafc93d4f3f09c32fdf2d4d6d62fd99799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Negr=C3=B3n?= <45871721+manegron@users.noreply.github.com> Date: Wed, 27 Sep 2023 11:51:14 +0100 Subject: [PATCH 1/2] Create lint.yml --- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..711263e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +--- +name: lint + +'on': + pull_request: + push: + branches: + - '**' + +jobs: + cookstyle: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true + - uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR + - name: Run cookstyle + working-directory: ./resources + run: bundle exec cookstyle From f593fafe0a83fb9c67f4d51111099568894052a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Negr=C3=B3n?= <45871721+manegron@users.noreply.github.com> Date: Wed, 27 Sep 2023 12:10:30 +0100 Subject: [PATCH 2/2] Create Gemfile --- Gemfile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Gemfile diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..9734e78 --- /dev/null +++ b/Gemfile @@ -0,0 +1,5 @@ +source 'https://rubygems.org' + +gem 'cookstyle', '= 7.32.1' +gem 'rspec', '= 3.11' +gem 'rubocop', '= 1.25.1'