diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..48955d8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +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: Install ShellCheck + run: | + sudo apt-get update -y + sudo apt-get install -y shellcheck + + - name: Run ShellCheck + run: "find bin -type f -exec shellcheck {} +" 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..0498021 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Git Plugins [![Build Status](https://travis-ci.org/afeld/git-plugins.svg?branch=travis)](https://travis-ci.org/afeld/git-plugins) +# 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. @@ -47,7 +49,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 +77,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/)