From d6bcab00c82971c94f47a59887faf1dd6783882a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20B=C3=A4lter?= Date: Mon, 11 Sep 2023 16:17:31 +0200 Subject: [PATCH 1/2] Dogfood the action to tests it --- .github/workflows/rubocop.yml | 17 +++++++++++++++++ .ruby-version | 1 + 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/rubocop.yml create mode 100644 .ruby-version diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 0000000..8f19fa4 --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,17 @@ +name: Rubocop + +on: pull_request + +permissions: + contents: read + pull-requests: write + +jobs: + rubocop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + - uses: ./ + with: + rubocop_args: --config .rubocop.yml diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..be94e6f --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.2.2 From b0bf3f1979de54c614f18bd1ca734ee26aa9e780 Mon Sep 17 00:00:00 2001 From: David Backeus Date: Mon, 6 Nov 2023 14:16:10 +0100 Subject: [PATCH 2/2] args -> arguments --- .github/workflows/rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 8f19fa4..ecf2519 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -14,4 +14,4 @@ jobs: - uses: ruby/setup-ruby@v1 - uses: ./ with: - rubocop_args: --config .rubocop.yml + rubocop_arguments: --config .rubocop.yml