Skip to content

Commit 9f8706b

Browse files
committed
updates for release v0.0.2
1 parent 41ae215 commit 9f8706b

File tree

4 files changed

+73
-73
lines changed

4 files changed

+73
-73
lines changed

.github/workflows/go.yml

+19-21
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,33 @@ name: sqac-build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88
schedule:
9-
- cron: '*/15 * * * *'
9+
- cron: "*/15 * * * *"
1010

1111
jobs:
12-
1312
build:
1413
name: Build
1514
runs-on: ubuntu-latest
1615
steps:
16+
- name: Set up Go 1.x
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: ^1.14
20+
id: go
1721

18-
- name: Set up Go 1.x
19-
uses: actions/setup-go@v2
20-
with:
21-
go-version: ^1.13
22-
id: go
23-
24-
- name: Check out code into the Go module directory
25-
uses: actions/checkout@v2
22+
- name: Check out code into the Go module directory
23+
uses: actions/checkout@v2
2624

27-
- name: Get dependencies
28-
run: |
29-
go get -v -t -d ./...
30-
if [ -f Gopkg.toml ]; then
31-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
32-
dep ensure
33-
fi
25+
- name: Get dependencies
26+
run: |
27+
go get -v -t -d ./...
28+
if [ -f Gopkg.toml ]; then
29+
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
30+
dep ensure
31+
fi
3432
35-
- name: Build
36-
run: go build -v .
33+
- name: Build
34+
run: go build -v .

.github/workflows/rel.yml

+25-25
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,41 @@ name: rel
22

33
on:
44
push:
5-
tags:
5+
tags:
66
- "v*"
77

88
jobs:
99
build:
1010
name: Build
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Set up Go 1.x
14+
uses: actions/setup-go@v2
15+
with:
16+
go-version: ^1.14
17+
id: go
1318

14-
- name: Set up Go 1.x
15-
uses: actions/setup-go@v2
16-
with:
17-
go-version: ^1.14
18-
id: go
19+
- name: Check out code into the Go module directory
20+
uses: actions/checkout@v2
1921

20-
- name: Check out code into the Go module directory
21-
uses: actions/checkout@v2
22+
- name: Get dependencies
23+
run: |
24+
go get -v -t -d ./...
25+
if [ -f Gopkg.toml ]; then
26+
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
27+
dep ensure
28+
fi
2229
23-
- name: Get dependencies
24-
run: |
25-
go get -v -t -d ./...
26-
if [ -f Gopkg.toml ]; then
27-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
28-
dep ensure
29-
fi
30+
- name: Build
31+
run: go build -v .
3032

31-
- name: Build
32-
run: go build -v .
33+
- name: Test
34+
run: go test -v -db sqlite .
3335

34-
- name: Test
35-
run: go test -v .
36-
37-
- name: Release
38-
uses: softprops/action-gh-release@v1
39-
if: startsWith(github.ref, 'refs/tags/')
40-
#with:
41-
env:
36+
- name: Release
37+
uses: softprops/action-gh-release@v1
38+
if: startsWith(github.ref, 'refs/tags/')
39+
with:
40+
body_path: CHANGELOG.txt
41+
env:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sqac-test.yml

+25-27
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,36 @@ name: sqac-test
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88
schedule:
9-
- cron: '*/15 * * * *'
9+
- cron: "*/15 * * * *"
1010

1111
jobs:
12-
1312
build:
1413
name: Build
1514
runs-on: ubuntu-latest
1615
steps:
17-
18-
- name: Set up Go 1.x
19-
uses: actions/setup-go@v2
20-
with:
21-
go-version: ^1.13
22-
id: go
23-
24-
- name: Check out code into the Go module directory
25-
uses: actions/checkout@v2
26-
27-
- name: Get dependencies
28-
run: |
29-
go get -v -t -d ./...
30-
if [ -f Gopkg.toml ]; then
31-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
32-
dep ensure
33-
fi
34-
35-
- name: Build
36-
run: go build -v .
37-
38-
- name: Test
39-
run: go test -v -db sqlite .
16+
- name: Set up Go 1.x
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: ^1.14
20+
id: go
21+
22+
- name: Check out code into the Go module directory
23+
uses: actions/checkout@v2
24+
25+
- name: Get dependencies
26+
run: |
27+
go get -v -t -d ./...
28+
if [ -f Gopkg.toml ]; then
29+
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
30+
dep ensure
31+
fi
32+
33+
- name: Build
34+
run: go build -v .
35+
36+
- name: Test
37+
run: go test -v -db sqlite .

CHANGELOG.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
v0.0.2
2+
- update build and test workflows to use go v1.14
3+
- add CHANGELOG.txt
4+
- update release workflow to correctly execute a sqlite3 test

0 commit comments

Comments
 (0)