diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml new file mode 100644 index 0000000..07deb74 --- /dev/null +++ b/.github/workflows/go.yaml @@ -0,0 +1,22 @@ +name: Go +on: [push] +jobs: + + test: + name: Test + runs-on: ubuntu-latest + steps: + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Test + run: go test -v ./... + + - name: Vet + run: go vet ./... diff --git a/.github/workflows/sh.yaml b/.github/workflows/sh.yaml new file mode 100644 index 0000000..fdd34f5 --- /dev/null +++ b/.github/workflows/sh.yaml @@ -0,0 +1,17 @@ +name: Shell +on: [push] +jobs: + + test: + name: Test + runs-on: ubuntu-latest + steps: + + - name: Set up + run: sudo apt-get install -y shellcheck zsh + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Test + run: scripts/test.sh diff --git a/Makefile b/Makefile index 1290463..02bb7e0 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ rebuild: make build clean: - rm bin/resh-* + rm -f bin/resh-* uninstall: # Uninstalling ... diff --git a/README.md b/README.md index 0ac7c42..157598a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ ![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/curusarn/resh?sort=semver) +![Go test](https://github.com/curusarn/resh/actions/workflows/go.yaml/badge.svg) +![Shell test](https://github.com/curusarn/resh/actions/workflows/sh.yaml/badge.svg) # Rich Enhanced Shell History