Allow out-of-docker execution of rake appraisal
tasks
#2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Test | |
on: | |
push: | |
workflow_call: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Test with ${{ matrix.engine.name }} ${{ matrix.engine.version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
engine: | |
- name: ruby | |
version: '3.4' | |
- name: ruby | |
version: '3.3' | |
- name: ruby | |
version: '3.2' | |
- name: ruby | |
version: '3.1' | |
- name: ruby | |
version: '3.0' | |
- name: ruby | |
version: '2.7' | |
- name: ruby | |
version: '2.6' | |
- name: ruby | |
version: '2.5' | |
- name: jruby | |
version: '9.4' | |
- name: jruby | |
version: '9.3' | |
- name: jruby | |
version: '9.2' | |
container: | |
image: "ghcr.io/datadog/images-rb/engines/${{ matrix.engine.name }}:${{ matrix.engine.version }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Bundle install | |
run: bundle install | |
- name: Appraisal install | |
run: bundle exec rake appraisal:install[${{ matrix.engine.name}}-${{ matrix.engine.version }}] | |
env: | |
APPRAISAL_DOCKER: 'false' | |
- name: Run the test | |
run: bundle exec rake test:all |