Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions CI #24

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
name: CI

on:
- push
- pull_request
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 21 * * 6"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to run this on a cron and burn up CI minutes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@geoffharcourt for open source projects GitHub is free. And we can and we should do it.

And in this case 0 21 * * 6 mean at 21:00 on each Saturday.. Sounds good. One per week run CI to check that everything still works.


jobs:
build:
Expand All @@ -11,20 +18,20 @@ jobs:
fail-fast: false
matrix:
ruby:
- jruby-9.4.1.0
- "jruby-9.1.17.0"
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "head"

runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Setup project
run: bundle install
bundler-cache: true
- name: Run test
run: bundle exec rake
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Terrapin [![Build Status](https://secure.travis-ci.org/thoughtbot/terrapin.png?branch=master)](http://travis-ci.org/thoughtbot/terrapin)
# Terrapin [![Build Status](https://secure.travis-ci.org/thoughtbot/terrapin.svg?branch=main)](http://travis-ci.org/thoughtbot/terrapin)

Run shell commands safely, even with user-supplied values

Expand Down Expand Up @@ -218,5 +218,5 @@ The names and logos for thoughtbot are trademarks of thoughtbot, inc.

Copyright 2011-2018 Jon Yurek and thoughtbot, inc. This is free software, and
may be redistributed under the terms specified in the
[LICENSE](https://github.com/thoughtbot/terrapin/blob/master/LICENSE)
[LICENSE](https://github.com/thoughtbot/terrapin/blob/main/LICENSE)
file.
2 changes: 1 addition & 1 deletion terrapin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.require_paths = ["lib"]

s.add_dependency("climate_control")
s.add_dependency("climate_control", "1.2.0")
s.add_development_dependency("rspec")
s.add_development_dependency("rake")
s.add_development_dependency("activesupport", ">= 3.0.0", "< 5.0")
Expand Down