Skip to content

Commit

Permalink
Merge pull request #89 from awesome-gocui/use-github-workflow
Browse files Browse the repository at this point in the history
Use github actions.
  • Loading branch information
mjarkk authored Mar 28, 2021
2 parents 5f7be97 + 46bee41 commit 3d0d797
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 37 deletions.
34 changes: 0 additions & 34 deletions .circleci/config.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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).

Expand Down

0 comments on commit 3d0d797

Please sign in to comment.