Skip to content

Commit 4fd547d

Browse files
committed
go 1.23
1 parent 8eecd2c commit 4fd547d

File tree

2 files changed

+45
-48
lines changed

2 files changed

+45
-48
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22
on:
33
push:
44
tags:
5-
- '*.*.*'
5+
- "*.*.*"
66

77
permissions:
88
contents: write
@@ -12,25 +12,24 @@ jobs:
1212
name: Release
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: Set up Go
16+
uses: actions/setup-go@v3
17+
with:
18+
go-version: 1.23
1519

16-
- name: Set up Go
17-
uses: actions/setup-go@v3
18-
with:
19-
go-version: 1.17
20+
- name: Check out code
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
2024

21-
- name: Check out code
22-
uses: actions/checkout@v3
23-
with:
24-
fetch-depth: 0
25+
- name: Download Go dependencies
26+
run: go mod download
2527

26-
- name: Download Go dependencies
27-
run: go mod download
28-
29-
- name: Make release
30-
uses: goreleaser/goreleaser-action@v4
31-
with:
32-
distribution: goreleaser
33-
version: v1.15.2
34-
args: release --clean
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Make release
29+
uses: goreleaser/goreleaser-action@v4
30+
with:
31+
distribution: goreleaser
32+
version: v1.15.2
33+
args: release --clean
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,37 @@
11
name: Test
22
on: push
33
jobs:
4-
54
build:
65
name: Build
76
runs-on: ubuntu-latest
87
steps:
8+
- name: Set up Go
9+
uses: actions/setup-go@v3
10+
with:
11+
go-version: 1.23
912

10-
- name: Set up Go
11-
uses: actions/setup-go@v3
12-
with:
13-
go-version: 1.17
14-
15-
- name: Check out code
16-
uses: actions/checkout@v3
13+
- name: Check out code
14+
uses: actions/checkout@v3
1715

18-
- name: Download Go dependencies
19-
env:
20-
GOPROXY: "https://proxy.golang.org"
21-
run: go mod download
16+
- name: Download Go dependencies
17+
env:
18+
GOPROXY: "https://proxy.golang.org"
19+
run: go mod download
2220

23-
- name: Run unit tests
24-
run: make test-unit
21+
- name: Run unit tests
22+
run: make test-unit
2523

26-
- name: Run test coverage
27-
run: |
28-
# gucumber only works from under GOPATH...
29-
export GOPATH=$(go env GOPATH)
30-
export PATH=$PATH:$GOPATH/bin
31-
export GOSRC=$GOPATH/src/github.com/$GITHUB_REPOSITORY
32-
mkdir -p $GOSRC
33-
cp -r $(pwd)/* $GOSRC
34-
cd $GOSRC
35-
make test-coverage
36-
env:
37-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
38-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39-
GO111MODULE: 'on'
24+
- name: Run test coverage
25+
run: |
26+
# gucumber only works from under GOPATH...
27+
export GOPATH=$(go env GOPATH)
28+
export PATH=$PATH:$GOPATH/bin
29+
export GOSRC=$GOPATH/src/github.com/$GITHUB_REPOSITORY
30+
mkdir -p $GOSRC
31+
cp -r $(pwd)/* $GOSRC
32+
cd $GOSRC
33+
make test-coverage
34+
env:
35+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
36+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
37+
GO111MODULE: "on"

0 commit comments

Comments
 (0)