Skip to content

Commit

Permalink
Merge pull request #69 from nimblehq/release/2.0.0
Browse files Browse the repository at this point in the history
Release - 2.0.0
  • Loading branch information
gutakk authored Sep 8, 2021
2 parents 7ce959b + b48a52a commit b12eb88
Show file tree
Hide file tree
Showing 57 changed files with 1,834 additions and 632 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Test

on: push

env:
BRANCH_NAME: ${GITHUB_REF#refs/heads/}

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -13,7 +10,7 @@ jobs:
uses: actions/[email protected]

- name: Install cookiecutter
run: sudo apt-get install cookiecutter
run: sudo -H python3 -m pip install cookiecutter

- name: Setup Go environment
uses: actions/[email protected]
Expand All @@ -28,4 +25,4 @@ jobs:
- name: Test
env:
GOPATH: /home/runner/go
run: BRANCH=${{env.BRANCH_NAME}} make test
run: make test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
.DS_Store
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: test

test:
BRANCH=$(BRANCH) go test -v -p 1 -count=1 ./...
go test -v -p 1 -count=1 ./...
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ Check this [wiki](https://github.com/nimblehq/gin-templates/wiki/Directories) fo

## Test

- Execute all unit tests. Note that the **main** branch is being used by default. Refer to [this wiki page](https://github.com/nimblehq/gin-templates/wiki/Commands) for instructions on how to use a different branch.

```sh
make test
```
Expand Down
16 changes: 0 additions & 16 deletions cmd/cmd_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
package cmd_test

import (
"os"
"testing"

"github.com/nimblehq/gin-templates/tests"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)

var TemplateGeneratedPath string

func TestTemplate(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Template Suite")
}

var _ = BeforeSuite(func() {
tests.DownloadGinTemplate()
tests.BuildGinTemplate()
tests.RemoveCookiecuttersCache()
TemplateGeneratedPath = tests.CreateProjectFromGinTemplate()
})

var _ = AfterSuite(func() {
os.RemoveAll(TemplateGeneratedPath + "/test-gin-templates")
})
Loading

0 comments on commit b12eb88

Please sign in to comment.