Skip to content

Commit

Permalink
Set up GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
infertux committed Sep 9, 2023
1 parent c6f14d3 commit 7c362aa
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 86 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,29 @@
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: Run Test Kitchen
run: env KITCHEN_PLATFORM=${{ matrix.platform }} KITCHEN_SCRIPT=${{ matrix.script }} kitchen test
2 changes: 1 addition & 1 deletion .kitchen.yml
Expand Up @@ -4,7 +4,7 @@ driver:

provisioner:
name: shell
script: ./bootstrap_ruby_<%= ENV["KITCHEN_SCRIPT"] %>.sh
command: bashcov ./bootstrap_ruby_<%= ENV["KITCHEN_SCRIPT"] %>.sh

platforms:
- name: <%= ENV["KITCHEN_PLATFORM"] %>
Expand Down
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
@@ -1,6 +1,7 @@
# ruby-bootstrap

[![Build Status](https://travis-ci.org/infertux/ruby-bootstrap.svg?branch=master)](https://travis-ci.org/infertux/ruby-bootstrap)
[![Funding](https://img.shields.io/liberapay/patrons/infertux.svg?logo=liberapay)](https://liberapay.com/infertux/donate)
[![Build Status](https://github.com/infertux/ruby-bootstrap/actions/workflows/ci.yml/badge.svg)](https://github.com/infertux/ruby-bootstrap/actions)

These are very simple self-contained Bash scripts to download, configure and install Ruby from source along with Bundler on Debian-family or Redhat-family systems.

Expand Down
51 changes: 0 additions & 51 deletions bootstrap_ruby_2.7.sh

This file was deleted.

4 changes: 2 additions & 2 deletions bootstrap_ruby_3.0.sh
Expand Up @@ -20,9 +20,9 @@ if [ -n "$FORCE" ] || ! command -v ruby >/dev/null; then

if [ -f /etc/debian_version ]; then
apt-get update
apt-get install -y wget gcc make zlib1g-dev libssl-dev libreadline-dev libffi-dev
apt-get install -y wget gcc g++ make zlib1g-dev libssl-dev libreadline-dev libffi-dev
elif [ -f /etc/redhat-release ]; then
yum install -y wget gcc make zlib-devel openssl-devel readline-devel
yum install -y wget gcc g++ make zlib-devel openssl-devel readline-devel
fi

cd /tmp
Expand Down

0 comments on commit 7c362aa

Please sign in to comment.