Skip to content

Set up GitHub Actions for CI #5

Set up GitHub Actions for CI

Set up GitHub Actions for CI #5

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
kitchen:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
script: [ "3.0", "3.1", "3.2", "stable" ]
platform: [ "debian", "ubuntu" ]
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby # latest stable release
- name: Install test dependencies
run: gem install --no-doc test-kitchen kitchen-docker bashcov
- name: Debug
run: whereis bashcov
- name: Run Test Kitchen
run: env KITCHEN_PLATFORM=${{ matrix.platform }} KITCHEN_SCRIPT=${{ matrix.script }} kitchen test