added test pipelines

pull/164/head
Vit Listik 4 years ago
parent 4dcdc3e0fc
commit d4bbfaa9f6
No known key found for this signature in database
GPG Key ID: DDDF5138DA46D76B
  1. 22
      .github/workflows/go.yaml
  2. 17
      .github/workflows/sh.yaml
  3. 3
      Makefile
  4. 2
      README.md
  5. 2
      go.mod

@ -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 ./...

@ -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

@ -16,6 +16,7 @@ test_go:
@for dir in {cmd,pkg}/* ; do \ @for dir in {cmd,pkg}/* ; do \
echo $$dir ; \ echo $$dir ; \
go test $$dir/*.go ; \ go test $$dir/*.go ; \
go vet $$dir/*.go ; \
done done
test: test_go test: test_go
@ -26,7 +27,7 @@ rebuild:
make build make build
clean: clean:
rm bin/resh-* rm -f bin/resh-*
uninstall: uninstall:
# Uninstalling ... # Uninstalling ...

@ -1,5 +1,7 @@
![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/curusarn/resh?sort=semver) ![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 # Rich Enhanced Shell History

@ -1,6 +1,6 @@
module github.com/curusarn/resh module github.com/curusarn/resh
go 1.12 go 1.16
require ( require (
github.com/BurntSushi/toml v0.3.1 github.com/BurntSushi/toml v0.3.1

Loading…
Cancel
Save