From c3222f99e7d1f803e16b779a69d7d064c8f2091c Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Thu, 26 Sep 2024 16:43:30 +0200 Subject: [PATCH] Enable CI --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..fe32d20 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: Ruby CI + +on: + push: + branches: + - "main" + pull_request: + types: [opened, synchronize, reopened] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: ["3.3", "3.2", "3.1", "3.0"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rspec