Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test & lint
on: [push]

jobs:
tests:
name: Test

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: [3.1]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Install dependencies
run: bundle install --jobs 4 --retry 3

- name: Run tests
run: bundle exec rake test

- name: Run linters
run: bundle exec standardrb
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ GEM
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.11.0)
sqlite3 (1.5.0-arm64-darwin)
sqlite3 (1.5.0-x86_64-linux)
standard (0.13.0)
rubocop (= 1.10.0)
rubocop-performance (= 1.9.2)
Expand All @@ -56,6 +57,7 @@ GEM

PLATFORMS
arm64-darwin-21
x86_64-linux

DEPENDENCIES
minitest (~> 5.0)
Expand All @@ -65,4 +67,4 @@ DEPENDENCIES
validation_errors!

BUNDLED WITH
2.3.21
2.5.18