Skip to content

Run Rubocop and tests on CI. #4

Run Rubocop and tests on CI.

Run Rubocop and tests on CI. #4

Workflow file for this run

on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: ruby:3.2
steps:
- run: apt update
- run: apt install -y 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