From 012afc99bea3e21b03046f061ec5d5e4f1d077e5 Mon Sep 17 00:00:00 2001 From: Patrick Oscity Date: Tue, 17 Sep 2024 12:24:31 +0200 Subject: [PATCH] Run CI against grape 2.1.x and 2.2.x --- .github/workflows/ci.yml | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1dceb411..5ca24a53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,6 +119,70 @@ jobs: bundle update bundle exec rspec + grape-21: + runs-on: ubuntu-latest + needs: ['rubocop'] + env: + GRAPE_VERSION: '2.1.3' + strategy: + matrix: + ruby-version: ['3.0', '3.1', '3.2', '3.3', 'head'] + steps: + - name: Check out branch + uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + - name: Run rspec wo model parser + run: | + bundle update + bundle exec rspec + - name: Run rspec w entity parser + env: + MODEL_PARSER: grape-swagger-entity + run: | + bundle update + bundle exec rspec + - name: Run rspec w representable parser + env: + MODEL_PARSER: grape-swagger-representable + run: | + bundle update + bundle exec rspec + + grape-22: + runs-on: ubuntu-latest + needs: ['rubocop'] + env: + GRAPE_VERSION: '2.2.0' + strategy: + matrix: + ruby-version: ['3.0', '3.1', '3.2', '3.3', 'head'] + steps: + - name: Check out branch + uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + - name: Run rspec wo model parser + run: | + bundle update + bundle exec rspec + - name: Run rspec w entity parser + env: + MODEL_PARSER: grape-swagger-entity + run: | + bundle update + bundle exec rspec + - name: Run rspec w representable parser + env: + MODEL_PARSER: grape-swagger-representable + run: | + bundle update + bundle exec rspec + grape-HEAD: runs-on: ubuntu-latest needs: ['rubocop']