From 3f30ea00fa886db966f21d02d2304161c39465fa Mon Sep 17 00:00:00 2001 From: Manfred Stienstra Date: Mon, 11 Dec 2023 10:35:28 +0100 Subject: [PATCH] Run Rubocop and tests on CI. --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0969ee9 --- /dev/null +++ b/.github/workflows/test.yml @@ -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