-
Notifications
You must be signed in to change notification settings - Fork 4.4k
48 lines (47 loc) · 1.1 KB
/
testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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.0', '3.1', '3.2' ]
name: Vagrant unit tests on Ruby ${{ matrix.ruby }}
steps:
- name: Code Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup Ruby
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
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