Dan Čermák 0b6faa613d
Install bsdtar in the CI
The recent update to Ubuntu 20.04 from 18.04 resulted in bsdtar being dropped
from the CI environment. This reduces our test coverage, so let's install it
again.
2022-11-01 15:41:54 +01:00

48 lines
1014 B
YAML

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: [ '2.6', '2.7', '3.0', '3.1' ]
name: Vagrant unit tests on Ruby ${{ matrix.ruby }}
steps:
- name: Code Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- name: install dependencies
run: sudo apt -y install libarchive-tools
- name: Run Tests
run: bundle exec rake test:unit