Skip to content

Commit 814bcd7

Browse files
committed
workflows: update 'go-version' to 'stable'
Signed-off-by: Victoria Dye <[email protected]>
1 parent c77f762 commit 814bcd7

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

Diff for: .github/workflows/main.yml

+6-15
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,16 @@ jobs:
1010
- name: Setup Go
1111
uses: actions/setup-go@v3
1212
with:
13-
go-version: '1.19.0'
13+
go-version: 'stable'
1414

15-
- uses: actions/checkout@v3
16-
with:
17-
path: src/git-bundle-server
15+
- name: Clone repository
16+
uses: actions/checkout@v3
1817

19-
# TODO: when the '-C' option is available, remove the 'cd ...'
20-
# See https://github.com/golang/go/issues/50332 for more details
2118
- name: Build
22-
run: |
23-
cd $GITHUB_WORKSPACE/src/git-bundle-server
24-
go build -v ./...
19+
run: go build -v ./...
2520

2621
- name: Check style
27-
run: |
28-
cd $GITHUB_WORKSPACE/src/git-bundle-server
29-
go vet ./...
22+
run: go vet ./...
3023

3124
- name: Run unit tests
32-
run: |
33-
cd $GITHUB_WORKSPACE/src/git-bundle-server
34-
go test -v ./...
25+
run: go test -v ./...

Diff for: .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup Go
4747
uses: actions/setup-go@v3
4848
with:
49-
go-version: '1.19.0'
49+
go-version: 'stable'
5050
- uses: ruby/setup-ruby@v1
5151
with:
5252
ruby-version: '3.2.1'

0 commit comments

Comments
 (0)