From 48494e2df13602c7dc33a91e44a4bb50f99cb6c8 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Fri, 11 Oct 2024 17:19:50 +0200 Subject: [PATCH] Move to GHA and update README --- .github/workflows/ci.yml | 17 +++++++++++++++++ .travis.yml | 4 ---- README.md | 5 +++-- test.sh | 8 +++++++- 4 files changed, 27 insertions(+), 7 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..9b2d2fa --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: CI +on: [push, pull_request] +jobs: + build: + name: Test + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - uses: addnab/docker-run-action@v3 + with: + options: -v ${{ github.workspace }}:/work + image: bash:latest + run: apk add git && /work/test.sh \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f240188..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: bash - -script: - - ./test.sh diff --git a/README.md b/README.md index a079f46..477bd9d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# git-confirm [![Travis Build Status](https://img.shields.io/travis/pimterry/git-confirm.svg)](https://travis-ci.org/pimterry/git-confirm) +# git-confirm [![Build Status](https://github.com/pimterry/git-confirm/workflows/CI/badge.svg)](https://github.com/pimterry/git-confirm/actions) + Git hook to catch placeholders and temporary changes (TODO / @ignore) before you commit them. [![Asciicast DEMO](asciicast.gif)](https://asciinema.org/a/dc7dr433caze9f8p65bitqs77?speed=2&autoplay=1) @@ -75,7 +76,7 @@ Want to help improve Git-Confirm? * Commit and push your changes * Open a PR! -Need any ideas? Take a look at the Git Confirm [Huboard](https://huboard.com/pimterry/git-confirm#/) to quickly see the next features to look at. +Need any ideas? Take a look at the Git Confirm [issues](https://github.com/pimterry/git-confirm/issues/) to quickly see the next features to look at. ## Release process diff --git a/test.sh b/test.sh index 2c1c64e..f6abbb2 100755 --- a/test.sh +++ b/test.sh @@ -1 +1,7 @@ -./test/libs/bats/bin/bats test/*.bats +#!/usr/bin/env bash + +# Run this file to run all the tests in test/*.bats + +parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) +cd "$parent_path" +./test/libs/bats/bin/bats test/*.bats \ No newline at end of file