From aa88740f8f0bdb73ba6cc4e14b920949221ad6b1 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Sun, 16 Mar 2025 18:25:13 -0400 Subject: [PATCH 1/3] switch CI to GitHub Actions --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 19 ------------------- README.md | 22 +++++++++++----------- 3 files changed, 46 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4d76c14 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: push + +jobs: + rspec: + name: RSpec + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.0.0 + bundler-cache: true + + - name: Configure Git + run: | + git config --global user.email "tester@example.com" + git config --global user.name "Sally Tester" + + - name: Run RSpec + run: bundle exec rspec + + shellcheck: + name: ShellCheck + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e826f1f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -sudo: false -language: ruby -rvm: - - 2.0.0 -cache: - apt: true - bundler: true -jobs: - include: - - stage: RSpec - before_script: - - git config --global user.email "tester@example.com" - - git config --global user.name "Sally Tester" - - git --version - script: bundle exec rspec - - stage: ShellCheck - before_script: - - sudo apt-get -y install shellcheck - script: "find bin -type f -exec shellcheck {} +" diff --git a/README.md b/README.md index bc64fc4..71609fe 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Git Plugins [![Build Status](https://travis-ci.org/afeld/git-plugins.svg?branch=travis)](https://travis-ci.org/afeld/git-plugins) +# Git Plugins A community collection of Git plugins. Browse [the scripts](bin) to see what's included. @@ -47,7 +47,7 @@ export PATH=path/to/git-plugins/bin:$PATH ## Aliases -The plugin names intentionally favor descriptiveness over terseness, but you should make shortcuts for yourself that make sense for you. You can see some examples in the `[alias]` section of [afeld/dotfiles](https://github.com/afeld/dotfiles/blob/master/gitconfig). To add a new shortcut: +The plugin names intentionally favor descriptiveness over terseness, but you should make shortcuts for yourself that make sense for you. You can see some examples in the `[alias]` section of [afeld/dotfiles](https://github.com/afeld/dotfiles/blob/master/gitconfig). To add a new shortcut: ```bash git config --global alias.SHORT LONG @@ -75,12 +75,12 @@ git config --global alias.pr create-pull-request ## See Also -* [Official GitHub CLI](https://cli.github.com/) -* [Git Extras](https://github.com/tj/git-extras) -* [EasyGit](https://people.gnome.org/~newren/eg/) -* [ghi](https://github.com/stephencelis/ghi) -* [git-flow](https://github.com/nvie/gitflow) -* [git-setup](https://github.com/afeld/git-setup) -* [hub](http://hub.github.com/) -* [HubFlow](http://datasift.github.io/gitflow/) -* [Legit](http://www.git-legit.org/) +- [Official GitHub CLI](https://cli.github.com/) +- [Git Extras](https://github.com/tj/git-extras) +- [EasyGit](https://people.gnome.org/~newren/eg/) +- [ghi](https://github.com/stephencelis/ghi) +- [git-flow](https://github.com/nvie/gitflow) +- [git-setup](https://github.com/afeld/git-setup) +- [hub](http://hub.github.com/) +- [HubFlow](http://datasift.github.io/gitflow/) +- [Legit](http://www.git-legit.org/) From c843088dae6aa834b5c1c6c374fa85115c268290 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Sun, 16 Mar 2025 18:30:05 -0400 Subject: [PATCH 2/3] ensure all scripts are checked --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d76c14..48955d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,5 +31,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install ShellCheck + run: | + sudo apt-get update -y + sudo apt-get install -y shellcheck + - name: Run ShellCheck - uses: ludeeus/action-shellcheck@master + run: "find bin -type f -exec shellcheck {} +" From 60d14bce06668e57a683d276241b73355da5fc5a Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Sun, 16 Mar 2025 18:34:29 -0400 Subject: [PATCH 3/3] add GitHub Actions badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 71609fe..0498021 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Git Plugins +[![CI](https://github.com/afeld/git-plugins/actions/workflows/ci.yml/badge.svg)](https://github.com/afeld/git-plugins/actions/workflows/ci.yml) + A community collection of Git plugins. Browse [the scripts](bin) to see what's included. ## Example workflow