From ea06b5372f7ccd8f02bded7e34a95a3c65815abb Mon Sep 17 00:00:00 2001 From: fatkodima Date: Wed, 10 Jul 2024 16:01:49 +0300 Subject: [PATCH] Add CI --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ Gemfile.lock | 2 ++ 2 files changed, 24 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..92e51b2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Test +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + include: + - gemfile: activerecord_70.gemfile + - gemfile: activerecord_72.gemfile + - gemfile: activerecord_head.gemfile + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }} + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.1 + bundler-cache: true + - name: Run the test suite + run: bundle exec rake diff --git a/Gemfile.lock b/Gemfile.lock index bc3fadf..b51843a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -66,6 +66,7 @@ GEM sqlite3 (1.7.3) mini_portile2 (~> 2.8.0) sqlite3 (1.7.3-x86_64-darwin) + sqlite3 (1.7.3-x86_64-linux) strscan (3.1.0) timeout (0.4.1) tzinfo (2.0.6) @@ -75,6 +76,7 @@ GEM PLATFORMS ruby x86_64-darwin-21 + x86_64-linux DEPENDENCIES active_record_tracer!