Skip to content

Commit

Permalink
Move remaining CircleCI jobs to GitHub Actions (#156)
Browse files Browse the repository at this point in the history
* Move remaining CircleCI jobs to GitHub Actions

* Remove CircleCI config

* Remove doc references to CircleCI
  • Loading branch information
mattbrictson authored Apr 8, 2024
1 parent 2cd3554 commit 61828f8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 99 deletions.
94 changes: 0 additions & 94 deletions .circleci/config.yml

This file was deleted.

31 changes: 28 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,32 @@ on:
branches:
- main
jobs:
spec_legacy_ruby_19:
rubocop:
name: "RuboCop"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
bundler-cache: true
- run: bundle exec rubocop
test:
name: "Test / Ruby ${{ matrix.ruby }}"
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
env:
sshkit: "master"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test
test_legacy_ruby_19:
name: "Test / Ruby 1.9 / SSHKit ${{ matrix.sshkit }}"
runs-on: ubuntu-20.04
strategy:
Expand All @@ -23,7 +48,7 @@ jobs:
bundler: "1.17.3"
bundler-cache: true
- run: bundle exec rake test
spec_legacy_ruby:
test_legacy_ruby:
name: "Test / Ruby ${{ matrix.ruby }} / SSHKit ${{ matrix.sshkit }}"
runs-on: ubuntu-20.04
strategy:
Expand All @@ -43,7 +68,7 @@ jobs:
spec_all:
name: "Test / Ruby (All)"
runs-on: ubuntu-latest
needs: [spec_legacy_ruby, spec_legacy_ruby_19]
needs: [test, test_legacy_ruby, test_legacy_ruby_19]
if: always()
steps:
- name: All tests ok
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Note that Bundler 1.10 is required for development. Run `gem update bundler` to

After checking out the airbrussh repo, run `bin/setup` to install dependencies. Run `rake` to execute airbrussh's tests and RuboCop checks.

Airbrussh is designed to work against multiple versions of SSHKit and Ruby. In order to test this, we use the environment variable `sshkit` in order to run the tests against a specific version. The combinations of sshkit and ruby we support are specified in [.circleci/config.yml](.circleci/config.yml).
Airbrussh is designed to work against multiple versions of SSHKit and Ruby. In order to test this, we use the environment variable `sshkit` in order to run the tests against a specific version. The combinations of sshkit and ruby we support are specified in [.github/workflows/ci.yml](.github/workflows/ci.yml).

A Guardfile is also present, so if you'd like to use Guard to do a TDD workflow, then:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Airbrussh

[![Gem Version](https://badge.fury.io/rb/airbrussh.svg)](http://badge.fury.io/rb/airbrussh)
[![Build Status](https://circleci.com/gh/mattbrictson/airbrussh/tree/main.svg?style=shield)](https://app.circleci.com/pipelines/github/mattbrictson/airbrussh?branch=main)
[![Build Status](https://github.com/mattbrictson/airbrussh/actions/workflows/ci.yml/badge.svg)](https://github.com/mattbrictson/airbrussh/actions/workflows/ci.yml)
[![Build status](https://ci.appveyor.com/api/projects/status/h052rlq54sne3md6/branch/main?svg=true)](https://ci.appveyor.com/project/mattbrictson/airbrussh/branch/main)
[![Code Climate](https://codeclimate.com/github/mattbrictson/airbrussh/badges/gpa.svg)](https://codeclimate.com/github/mattbrictson/airbrussh)
[![Coverage Status](https://coveralls.io/repos/mattbrictson/airbrussh/badge.svg?branch=main)](https://coveralls.io/r/mattbrictson/airbrussh?branch=main)
Expand Down

0 comments on commit 61828f8

Please sign in to comment.