Skip to content

Commit 2ebc9c1

Browse files
committed
ci: enable Vagrant-based testing using GitHub Actions
* Semi-automated using myii/ssf-formula#304
1 parent fc53d97 commit 2ebc9c1

File tree

2 files changed

+49
-9
lines changed

2 files changed

+49
-9
lines changed

Diff for: .github/workflows/kitchen.vagrant.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
4+
name: 'Kitchen Vagrant (FreeBSD)'
5+
'on': ['push', 'pull_request']
6+
7+
env:
8+
KITCHEN_LOCAL_YAML: 'kitchen.vagrant.yml'
9+
10+
jobs:
11+
test:
12+
runs-on: 'macos-10.15'
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
instance:
17+
- default-freebsd-122-latest-py3
18+
- default-freebsd-114-latest-py3
19+
steps:
20+
- name: 'Check out code'
21+
uses: 'actions/checkout@v2'
22+
- name: 'Set up Bundler cache'
23+
uses: 'actions/cache@v1'
24+
with:
25+
path: 'vendor/bundle'
26+
key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}"
27+
restore-keys: "${{ runner.os }}-gems-"
28+
- name: 'Run Bundler'
29+
run: |
30+
ruby --version
31+
bundle config path vendor/bundle
32+
bundle install --jobs 4 --retry 3
33+
- name: 'Run Test Kitchen'
34+
run: 'bundle exec kitchen verify ${{ matrix.instance }}'

Diff for: kitchen.vagrant.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33
---
44
driver:
55
name: vagrant
6+
cache_directory: false
7+
customize:
8+
usbxhci: 'off'
9+
gui: false
10+
linked_clone: true
11+
ssh:
12+
shell: /bin/sh
613

714
platforms:
8-
- name: freebsd-120-2019-2-py3
15+
- name: freebsd-122-latest-py3
916
driver:
10-
box_url: https://freebsd.z.vstack.com/FreeBSD-12.0.box
11-
cache_directory: false
12-
customize:
13-
usbxhci: 'off'
14-
gui: false
15-
linked_clone: true
16-
ssh:
17-
shell: '/bin/sh'
17+
box: bento/freebsd-12.2
18+
- name: freebsd-114-latest-py3
19+
driver:
20+
box: bento/freebsd-11.4
21+
22+
provisioner:
23+
salt_install: bootstrap

0 commit comments

Comments
 (0)