From 25d2aa82669cbf8e58879efb9ad0933feb84bb5c Mon Sep 17 00:00:00 2001 From: Postmodern Date: Wed, 1 May 2024 22:49:34 -0700 Subject: [PATCH] Added GitHub Actions workflow. --- .github/workflows/rubocop.yml | 18 ++++++++++++++++++ 1 file changed, 18 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..5492ea9 --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,18 @@ +name: CI + +on: [ push, pull_request ] + +jobs: + # rubocop linting + rubocop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.0 + - name: Install dependencies + run: bundle install --jobs 4 --retry 3 + - name: Run rubocop + run: bundle exec rubocop --parallel