diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index e275579a..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,34 +0,0 @@ -version: 2 -jobs: - build: - working_directory: /go/src/github.com/awesome-gocui/gocui - - docker: - - image: circleci/golang:1.15 - - steps: - - checkout - - run: - name: go mod - command: go mod tidy - - run: - name: go fmt - command: | - if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then - find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \; - exit 1; - fi - - run: - name: go build - command: | - cd _examples/ - for file in *.go - do - go build $file - done - -workflows: - version: 2 - build: - jobs: - - build diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..a29431f0 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,36 @@ +name: Go + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go-versions: ["1.13", "1.15", "1.16"] + name: GoLang ${{ matrix.go-versions }} + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-versions }} + - name: Formatting + run: | + if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then + find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \; + exit 1; + fi + + - name: Build + run: | + cd _examples/ + for file in *.go + do + go build $file + done diff --git a/README.md b/README.md index 3a7334fe..204a0f10 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # GOCUI - Go Console User Interface -[![CircleCI](https://circleci.com/gh/awesome-gocui/gocui/tree/master.svg?style=svg)](https://circleci.com/gh/awesome-gocui/gocui/tree/master) -[![CodeCov](https://codecov.io/gh/awesome-gocui/gocui/branch/master/graph/badge.svg)](https://codecov.io/gh/awesome-gocui/gocui) +[![github actions](https://github.com/awesome-gocui/gocui/actions/workflows/go.yml/badge.svg)](https://github.com/awesome-gocui/gocui/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/awesome-gocui/gocui)](https://goreportcard.com/report/github.com/awesome-gocui/gocui) -[![GolangCI](https://golangci.com/badges/github.com/awesome-gocui/gocui.svg)](https://golangci.com/badges/github.com/awesome-gocui/gocui.svg) [![GoDoc](https://godoc.org/github.com/awesome-gocui/gocui?status.svg)](https://godoc.org/github.com/awesome-gocui/gocui) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/awesome-gocui/gocui.svg) @@ -35,6 +33,7 @@ This fork has many improvements over the original work from [jroimartin](https:/ * Improved code comments and quality * Many small improvements * Change Visibility of views +* Requires Go 1.13 or newer For information about this org see: [awesome-gocui/about](https://github.com/awesome-gocui/about).