mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-17 10:10:31 +00:00
ci: enable Vagrant-based testing using GitHub Actions
* Semi-automated using https://github.com/myii/ssf-formula/pull/304
This commit is contained in:
parent
fc53d977b3
commit
2ebc9c11da
2 changed files with 49 additions and 9 deletions
34
.github/workflows/kitchen.vagrant.yml
vendored
Normal file
34
.github/workflows/kitchen.vagrant.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
|
name: 'Kitchen Vagrant (FreeBSD)'
|
||||||
|
'on': ['push', 'pull_request']
|
||||||
|
|
||||||
|
env:
|
||||||
|
KITCHEN_LOCAL_YAML: 'kitchen.vagrant.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: 'macos-10.15'
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
instance:
|
||||||
|
- default-freebsd-122-latest-py3
|
||||||
|
- default-freebsd-114-latest-py3
|
||||||
|
steps:
|
||||||
|
- name: 'Check out code'
|
||||||
|
uses: 'actions/checkout@v2'
|
||||||
|
- name: 'Set up Bundler cache'
|
||||||
|
uses: 'actions/cache@v1'
|
||||||
|
with:
|
||||||
|
path: 'vendor/bundle'
|
||||||
|
key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}"
|
||||||
|
restore-keys: "${{ runner.os }}-gems-"
|
||||||
|
- name: 'Run Bundler'
|
||||||
|
run: |
|
||||||
|
ruby --version
|
||||||
|
bundle config path vendor/bundle
|
||||||
|
bundle install --jobs 4 --retry 3
|
||||||
|
- name: 'Run Test Kitchen'
|
||||||
|
run: 'bundle exec kitchen verify ${{ matrix.instance }}'
|
|
@ -3,15 +3,21 @@
|
||||||
---
|
---
|
||||||
driver:
|
driver:
|
||||||
name: vagrant
|
name: vagrant
|
||||||
|
cache_directory: false
|
||||||
|
customize:
|
||||||
|
usbxhci: 'off'
|
||||||
|
gui: false
|
||||||
|
linked_clone: true
|
||||||
|
ssh:
|
||||||
|
shell: /bin/sh
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: freebsd-120-2019-2-py3
|
- name: freebsd-122-latest-py3
|
||||||
driver:
|
driver:
|
||||||
box_url: https://freebsd.z.vstack.com/FreeBSD-12.0.box
|
box: bento/freebsd-12.2
|
||||||
cache_directory: false
|
- name: freebsd-114-latest-py3
|
||||||
customize:
|
driver:
|
||||||
usbxhci: 'off'
|
box: bento/freebsd-11.4
|
||||||
gui: false
|
|
||||||
linked_clone: true
|
provisioner:
|
||||||
ssh:
|
salt_install: bootstrap
|
||||||
shell: '/bin/sh'
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue