diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-05 18:19:07 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-04-07 18:58:37 +0200 |
| commit | a058946a0d78771157b07f1803527a2263c44dd7 (patch) | |
| tree | 801b561b27632020db11c6902f47712d3789ed62 /.github | |
| parent | c9133ad108ca80c5d99195a70a9bdd95e50dde1a (diff) | |
| download | caxlsx-a058946a0d78771157b07f1803527a2263c44dd7.tar.gz caxlsx-a058946a0d78771157b07f1803527a2263c44dd7.zip | |
Add RuboCop workflow and configuration
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/rubocop.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 00000000..2daa2926 --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,32 @@ +name: RuboCop + +on: + push: + branches: ['*'] + pull_request: + branches: ['*'] + +permissions: + contents: read + +jobs: + rubocop: + name: RuboCop + runs-on: ${{ matrix.os }} + env: + BUNDLE_JOBS: 4 + BUNDLE_RETRY: 3 + strategy: + matrix: + os: [ubuntu-latest] + ruby-version: ['3.2'] + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Run RuboCop + run: bundle exec rubocop |
