Skip to content

Commit 6a70ceb

Browse files
authored
Merge pull request #701 from pjbgf/build
ci: Bump GitHub actions, enable go test race detection and stop using developer's GPG keys during test execution
2 parents 7e345bb + eddd209 commit 6a70ceb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/git.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717

1818
steps:
1919
- name: Install Go
20-
uses: actions/setup-go@v1
20+
uses: actions/setup-go@v3
2121
with:
2222
go-version: 1.20.x
2323

2424
- name: Checkout code
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626

2727
- name: Install build dependencies
2828
run: sudo apt-get install gettext

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ${{ matrix.platform }}
1515
steps:
1616
- name: Install Go
17-
uses: actions/setup-go@v1
17+
uses: actions/setup-go@v3
1818
with:
1919
go-version: ${{ matrix.go-version }}
2020

2121
- name: Checkout code
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2323

2424
- name: Configure known hosts
2525
if: matrix.platform != 'ubuntu-latest'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ build-git:
2727

2828
test:
2929
@echo "running against `git version`"; \
30-
$(GOTEST) ./...
30+
$(GOTEST) -race ./...
3131

3232
test-coverage:
3333
@echo "running against `git version`"; \

worktree_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func (s *RepositorySuite) TestPullAdd(c *C) {
259259
ExecuteOnPath(c, path,
260260
"touch foo",
261261
"git add foo",
262-
"git commit -m foo foo",
262+
"git commit --no-gpg-sign -m foo foo",
263263
)
264264

265265
w, err := r.Worktree()

0 commit comments

Comments
 (0)