Skip to content

Commit

Permalink
Merge pull request #17 from veracross/data-table-gh-actions-ci
Browse files Browse the repository at this point in the history
Replace CircleCI config with GH Actions CI workflow
  • Loading branch information
aharpervc authored Aug 29, 2024
2 parents 5a06f56 + 243ec4e commit d171ecd
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 62 deletions.
56 changes: 0 additions & 56 deletions .circleci/config.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ci

on:
pull_request:
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version:
- '2.7'
- '3.1'
- '3.2'
- '3.3'

name: test (ruby ${{ matrix.ruby-version }})

permissions:
contents: read
checks: write

env:
BUNDLE_ONLY: default test
CI: true

steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- run: bundle exec rspec
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@ source "http://rubygems.org"

# Specify your gem's dependencies in data-table.gemspec
gemspec

group :development, :test do
gem 'rake', '~> 12'
gem 'rspec', '~> 3'
gem 'rspec_junit_formatter'
gem 'guard', '~> 2'
gem 'guard-rspec', '~> 4'
end
6 changes: 0 additions & 6 deletions data-table.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ Gem::Specification.new do |s|
turning an array of hashes or ActiveRecord objects into an
HTML table.)

s.add_development_dependency 'rake', '~> 12'
s.add_development_dependency 'rspec', '~> 3'
s.add_development_dependency 'rspec_junit_formatter'
s.add_development_dependency 'guard', '~> 2'
s.add_development_dependency 'guard-rspec', '~> 4'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
Expand Down

0 comments on commit d171ecd

Please sign in to comment.