Merge pull request #13540 from chrisroberts/hcp-authentication #1779
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: Vagrant Ruby Tests | |
on: | |
push: | |
branches: | |
- main | |
- 'test-*' | |
paths: | |
- 'bin/**' | |
- 'lib/**' | |
- 'plugins/**' | |
- 'test/**' | |
- 'templates/**' | |
- 'Gemfile' | |
- 'vagrant.gemspec' | |
- 'Rakefile' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'bin/**' | |
- 'lib/**' | |
- 'plugins/**' | |
- 'test/**' | |
- 'Gemfile' | |
- 'templates/**' | |
- 'vagrant.gemspec' | |
- 'Rakefile' | |
jobs: | |
unit-tests-ruby: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
matrix: | |
ruby: [ '3.1', '3.2', '3.3' ] | |
name: Vagrant unit tests on Ruby ${{ matrix.ruby }} | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.180.1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -yq libarchive-tools | |
- name: Run Tests | |
run: bundle exec rake test:unit |