diff --git a/.github/workflows/release-on-pr-merge.yml b/.github/workflows/release-on-pr-merge.yml index b2cd245..47f452b 100644 --- a/.github/workflows/release-on-pr-merge.yml +++ b/.github/workflows/release-on-pr-merge.yml @@ -12,10 +12,10 @@ jobs: RUBYGEMS_PASS: '${{ secrets.RUBYGEMS_PASS }}' steps: - uses: actions/checkout@v3 - - name: Set up Ruby 2.7.x + - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.2 - name: Setup git run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d061c9f..dc5d484 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,14 +1,22 @@ name: tests -on: [push, pull_request] - +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: tests: - name: Run test on ${{ matrix.os }} + name: Run UTs on ${{ matrix.ruby_version }} + ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest] + ruby_version: ['2.7', '3.0', '3.1', '3.2'] + fail-fast: false + steps: - uses: actions/checkout@v3 @@ -17,10 +25,10 @@ jobs: run: | node -e "console.log(JSON.stringify(process.env, null, ' '))" - - name: Set up Ruby 2.7.x + - name: Set up Ruby ${{ matrix.ruby_version }} uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: ${{ matrix.ruby_version }} - name: Run tests run: | @@ -28,12 +36,14 @@ jobs: bundle exec rake spec fts: - name: Run FTs on ${{ matrix.os }} + name: Run FTs on ${{ matrix.ruby_version }} + ${{ matrix.os }} runs-on: ${{ matrix.os }} needs: tests strategy: matrix: os: [windows-latest, ubuntu-latest] + ruby_version: ['2.7', '3.0', '3.1', '3.2'] + fail-fast: false steps: - uses: actions/checkout@v3 @@ -54,10 +64,10 @@ jobs: echo "RUBY_PLUGIN_BRANCH=$COMMIT_HASH" >> $GITHUB_ENV echo "LOCAL_RUBY_PLUGIN_PATH=$(pwd)" >> $GITHUB_ENV - - name: Set up Ruby 2.7.x + - name: Set up Ruby ${{ matrix.ruby_version }} uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: ${{ matrix.ruby_version }} - name: Setup go 1.20.x uses: actions/setup-go@v4 @@ -90,16 +100,18 @@ jobs: - uses: actions/upload-artifact@master if: failure() || cancelled() with: - name: fts-logs-${{ matrix.os }} + name: fts-logs-${{ matrix.os }}-ruby-${{ matrix.ruby_version }} path: gauge-tests/logs lsp-tests: - name: Run lsp on ${{ matrix.os }} + name: Run lsp on ${{ matrix.ruby_version }} + ${{ matrix.os }} runs-on: ${{ matrix.os }} needs: tests strategy: matrix: os: [ubuntu-latest, windows-latest] + ruby_version: ['2.7', '3.0', '3.1', '3.2'] + fail-fast: false steps: - uses: actions/checkout@v3 @@ -120,10 +132,10 @@ jobs: echo "RUBY_PLUGIN_BRANCH=$COMMIT_HASH" >> $GITHUB_ENV echo "LOCAL_RUBY_PLUGIN_PATH=$(pwd)" >> $GITHUB_ENV - - name: Set up Ruby 2.7.x + - name: Set up Ruby ${{ matrix.ruby_version }} uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: ${{ matrix.ruby_version }} - name: Setup go 1.20.x uses: actions/setup-go@v4 @@ -155,5 +167,5 @@ jobs: - uses: actions/upload-artifact@master if: failure() || cancelled() with: - name: lsp-logs-${{ matrix.os }} + name: lsp-logs-${{ matrix.os }}-ruby-${{ matrix.ruby_version }} path: gauge-lsp-tests/logs \ No newline at end of file diff --git a/.ruby-version b/.ruby-version index 4128e1c..ff12e8f 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.8 +3.2.2 diff --git a/Gemfile.lock b/Gemfile.lock index 40034ca..9cd203d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - gauge-ruby (0.6.0) + gauge-ruby (0.7.0) grpc (~> 1.10, >= 1.10.0) parser (>= 2.7, < 4.0) ruby-protocol-buffers (= 1.6.1) diff --git a/ruby.json b/ruby.json index e905463..66c3d5e 100644 --- a/ruby.json +++ b/ruby.json @@ -1,6 +1,6 @@ { "id" : "ruby", - "version" : "0.6.0", + "version" : "0.7.0", "description": "ruby support for gauge", "install": { "windows": [],