Skip to content

Commit

Permalink
Run Rubocop and tests on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred committed Dec 11, 2023
1 parent 2edbd8b commit 3f30ea0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: ruby:3.2
steps:
- run: apt install libuchardet-dev
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-bundler-${{ hashFiles('Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: |
gem install --no-document bundler rubocop rubocop-performance
bundle config set path 'vendor/bundle'
bundle install --jobs 3 --retry 3
- run: rake
- run: rubocop

0 comments on commit 3f30ea0

Please sign in to comment.