From edbc48ea0d5da025fc8d6e6883f003d6a051b14d Mon Sep 17 00:00:00 2001 From: Cat Date: Thu, 25 Jun 2020 13:54:56 -0500 Subject: [PATCH 1/3] Add ci.yml to test github actions --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9668fa3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: ci + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + test: + runs-on: ubuntu-latest + steps: + - name: Set up Go 1.13 + uses: actions/setup-go@v2 + with: + go-version: 1.13.x + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + go get -v -t -d ./... + if [ -f Gopkg.toml ]; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + dep ensure + fi + + - name: Test + run: go test -timeout 3m -v ./... From 7829e5b7e6daf01169c8cadb1a5a25b1ad6cbd1c Mon Sep 17 00:00:00 2001 From: Catherine Moca <12579725+mochacat@users.noreply.github.com> Date: Thu, 25 Jun 2020 14:09:34 -0500 Subject: [PATCH 2/3] remove unnecessary dep files --- Gopkg.lock | 44 -------------------------------------------- Gopkg.toml | 30 ------------------------------ 2 files changed, 74 deletions(-) delete mode 100644 Gopkg.lock delete mode 100644 Gopkg.toml diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index 80c404a..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,44 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec" - name = "github.com/davecgh/go-spew" - packages = ["spew"] - pruneopts = "UT" - revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" - version = "v1.1.1" - -[[projects]] - branch = "release-branch.go1.3" - digest = "1:e5e95df618258c97995e40326898774944ea965713da6787a66d9d19f373bf89" - name = "github.com/golang/tools" - packages = ["container/intsets"] - pruneopts = "UT" - revision = "b5e7da4a16c82e64159ccf8eda8babcecef44b88" - -[[projects]] - digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe" - name = "github.com/pmezard/go-difflib" - packages = ["difflib"] - pruneopts = "UT" - revision = "792786c7400a136282c1664665ae0a8db921c6c2" - version = "v1.0.0" - -[[projects]] - digest = "1:18752d0b95816a1b777505a97f71c7467a8445b8ffb55631a7bf779f6ba4fa83" - name = "github.com/stretchr/testify" - packages = ["assert"] - pruneopts = "UT" - revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686" - version = "v1.2.2" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/golang/tools/container/intsets", - "github.com/stretchr/testify/assert", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index d7072c2..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,30 +0,0 @@ -# Gopkg.toml example -# -# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" -# -# [prune] -# non-go = false -# go-tests = true -# unused-packages = true - - -[prune] - go-tests = true - unused-packages = true From 5d2fb32c15b554aff7e1ae5e2085c5c6ca61b13c Mon Sep 17 00:00:00 2001 From: Catherine Moca <12579725+mochacat@users.noreply.github.com> Date: Thu, 25 Jun 2020 14:17:13 -0500 Subject: [PATCH 3/3] update readme with github actions badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c538b05..30fbf22 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This is mostly intended to be used as a library for parsing, manipulating, and s For example, given a condition logic string like so `1 OR 2 AND (3 AND 4)`, this will allow you to remove any leaves by value and still get a valid condition logic string. +[![ci status](https://github.com/skuid/balsa/workflows/ci/badge.svg)](https://github.com/skuid/balsa/actions) + # Usage ## Parse