Skip to content

Commit b12eb88

Browse files
authored
Merge pull request #69 from nimblehq/release/2.0.0
Release - 2.0.0
2 parents 7ce959b + b48a52a commit b12eb88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1834
-632
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Test
22

33
on: push
44

5-
env:
6-
BRANCH_NAME: ${GITHUB_REF#refs/heads/}
7-
85
jobs:
96
test:
107
runs-on: ubuntu-latest
@@ -13,7 +10,7 @@ jobs:
1310
uses: actions/checkout@v2.3.4
1411

1512
- name: Install cookiecutter
16-
run: sudo apt-get install cookiecutter
13+
run: sudo -H python3 -m pip install cookiecutter
1714

1815
- name: Setup Go environment
1916
uses: actions/setup-go@v2.1.3
@@ -28,4 +25,4 @@ jobs:
2825
- name: Test
2926
env:
3027
GOPATH: /home/runner/go
31-
run: BRANCH=${{env.BRANCH_NAME}} make test
28+
run: make test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@
3434

3535
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
3636
.rvmrc
37+
.DS_Store

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.PHONY: test
22

33
test:
4-
BRANCH=$(BRANCH) go test -v -p 1 -count=1 ./...
4+
go test -v -p 1 -count=1 ./...

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ Check this [wiki](https://github.com/nimblehq/gin-templates/wiki/Directories) fo
4545

4646
## Test
4747

48-
- 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.
49-
5048
```sh
5149
make test
5250
```

cmd/cmd_suite_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11
package cmd_test
22

33
import (
4-
"os"
54
"testing"
65

7-
"github.com/nimblehq/gin-templates/tests"
8-
96
. "github.com/onsi/ginkgo"
107
. "github.com/onsi/gomega"
118
)
129

13-
var TemplateGeneratedPath string
14-
1510
func TestTemplate(t *testing.T) {
1611
RegisterFailHandler(Fail)
1712
RunSpecs(t, "Template Suite")
1813
}
19-
20-
var _ = BeforeSuite(func() {
21-
tests.DownloadGinTemplate()
22-
tests.BuildGinTemplate()
23-
tests.RemoveCookiecuttersCache()
24-
TemplateGeneratedPath = tests.CreateProjectFromGinTemplate()
25-
})
26-
27-
var _ = AfterSuite(func() {
28-
os.RemoveAll(TemplateGeneratedPath + "/test-gin-templates")
29-
})

0 commit comments

Comments
 (0)