From 98fb7590c44f8aa0858de820aa37b77d1c4ce9bf Mon Sep 17 00:00:00 2001 From: Danny Beton Date: Wed, 24 Jun 2026 15:30:28 +0100 Subject: [PATCH] [CI FEATURE] Add GitHub Actions CI workflow for unit tests LRN-51509 --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ef15e4e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['3.1', '3.2', '3.3', '3.4'] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + + - name: Run unit tests + run: bundle exec rake spec SPEC=spec/learnosity/*