Skip to content

(CAT-1430) - Drop ruby 2.5 Support & Add Ruby 3.x Support #90

(CAT-1430) - Drop ruby 2.5 Support & Add Ruby 3.x Support

(CAT-1430) - Drop ruby 2.5 Support & Add Ruby 3.x Support #90

Workflow file for this run

name: "ci"
on:
pull_request:
branches:
- "main"
workflow_dispatch:
jobs:
# spec:
# strategy:
# fail-fast: false
# matrix:
# ruby_version:
# - '2.7'
# - '3.2'
# runs_on:
# - 'ubuntu-latest'
# - 'windows-latest'
# name: "Spec : ${{ matrix.runs_on }} Ruby ${{ matrix.ruby_version }}"
# uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
# secrets: "inherit"
# with:
# ruby_version: ${{ matrix.ruby_version }}
# runs_on: ${{ matrix.runs_on }}
# rake_task: 'gem_revendor test_languageserver test_languageserver_sidecar test_debugserver'
acceptance:
name: "acceptance"
runs-on: windows-latest
env:
PUPPET_GEM_VERSION: '~> 8.0'
steps:
- name: "checkout"
uses: "actions/checkout@v4"
- name: "export environment"
run: |
echo "PUPPET_VERSION='~> 8.0'" >> $GITHUB_ENV
echo "PUPPET_GEM_VERSION='~> 8.0'" >> $GITHUB_ENV
- name: "setup ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: '3.2'
bundler-cache: true
- name: "bundle environment"
run: |
echo ::group::bundler environment
bundle env
echo ::endgroup::
- name: Start SSH session
uses: luchihoratiu/debug-via-ssh@main
with:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: "execute acceptance tests"
run: |
# This generic task to run acceptance tests.
# It should be overridden in the Rakefile.
bundle exec rake gem_revendor acceptance_languageserver
# build:
# strategy:
# fail-fast: false
# matrix:
# ruby_version:
# - '2.7'
# - '3.2'
# name: "Build Editor Service (Ruby ${{ matrix.ruby_version }})"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: ${{ matrix.ruby_version }}
# bundler-cache: true
# - name: Set build version
# shell: pwsh
# run: |
# '99.99.0-gh.${{ github.run_number }}' | Out-File -FilePath 'lib\puppet_editor_services\VERSION' -Encoding ASCII -Confirm:$false -Force
# - name: Run rake gem_revendor build
# run: bundle exec rake gem_revendor build
# - name: 'Upload Artifact'
# uses: actions/upload-artifact@v3
# with:
# name: puppet-editor-services
# path: output/*.zip
# retention-days: 2