Skip to content

Commit d31c3f9

Browse files
authored
build(ci): use default working directory (#170)
1 parent b3f2f57 commit d31c3f9

File tree

5 files changed

+10
-36
lines changed

5 files changed

+10
-36
lines changed

.github/workflows/codecov.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,16 @@ jobs:
1010
coverage:
1111
name: coverage
1212
runs-on: ubuntu-latest
13-
defaults:
14-
run:
15-
working-directory: main
1613
steps:
1714
- name: Checkout repository
1815
uses: actions/checkout@v4
19-
with:
20-
path: main
2116
- name: Set up Go
2217
uses: actions/setup-go@v5
2318
with:
24-
go-version-file: "main/go.mod"
19+
go-version-file: "go.mod"
2520
check-latest: true
2621
cache: true
27-
cache-dependency-path: "main/go.sum"
22+
cache-dependency-path: "go.sum"
2823
- name: Set up MongoDB
2924
uses: supercharge/[email protected]
3025
with:
@@ -36,4 +31,3 @@ jobs:
3631
with:
3732
token: ${{ secrets.CODECOV_TOKEN }}
3833
fail_ci_if_error: true
39-
working-directory: main

.github/workflows/go.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,16 @@ jobs:
1010
test:
1111
name: test
1212
runs-on: ubuntu-latest
13-
defaults:
14-
run:
15-
working-directory: main
1613
steps:
1714
- name: Checkout repository
1815
uses: actions/checkout@v4
19-
with:
20-
path: main
2116
- name: Set up Go
2217
uses: actions/setup-go@v5
2318
with:
24-
go-version-file: "main/go.mod"
19+
go-version-file: "go.mod"
2520
check-latest: true
2621
cache: true
27-
cache-dependency-path: "main/go.sum"
22+
cache-dependency-path: "go.sum"
2823
- name: Test packages
2924
run: make test-short
3025
- name: Build artifacts

.github/workflows/memdb.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,15 @@ jobs:
1010
test:
1111
name: go-memdb
1212
runs-on: ubuntu-latest
13-
defaults:
14-
run:
15-
working-directory: main
1613
steps:
1714
- name: Checkout repository
1815
uses: actions/checkout@v4
19-
with:
20-
path: main
2116
- name: Set up Go
2217
uses: actions/setup-go@v5
2318
with:
24-
go-version-file: "main/go.mod"
19+
go-version-file: "go.mod"
2520
check-latest: true
2621
cache: true
27-
cache-dependency-path: "main/go.sum"
22+
cache-dependency-path: "go.sum"
2823
- name: Test packages
2924
run: make test-engine-memdb

.github/workflows/mongodb.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,16 @@ jobs:
1313
strategy:
1414
matrix:
1515
mongodb-version: ["4.4", "5.0", "6.0", "7.0"]
16-
defaults:
17-
run:
18-
working-directory: main
1916
steps:
2017
- name: Checkout repository
2118
uses: actions/checkout@v4
22-
with:
23-
path: main
2419
- name: Set up Go
2520
uses: actions/setup-go@v5
2621
with:
27-
go-version-file: "main/go.mod"
22+
go-version-file: "go.mod"
2823
check-latest: true
2924
cache: true
30-
cache-dependency-path: "main/go.sum"
25+
cache-dependency-path: "go.sum"
3126
- name: Set up MongoDB
3227
uses: supercharge/[email protected]
3328
with:

.github/workflows/release.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,16 @@ jobs:
88
release:
99
name: release
1010
runs-on: ubuntu-latest
11-
defaults:
12-
run:
13-
working-directory: main
1411
steps:
1512
- name: Checkout repository
1613
uses: actions/checkout@v4
17-
with:
18-
path: main
1914
- name: Set up Go
2015
uses: actions/setup-go@v5
2116
with:
22-
go-version-file: "main/go.mod"
17+
go-version-file: "go.mod"
2318
check-latest: true
2419
cache: true
25-
cache-dependency-path: "main/go.sum"
20+
cache-dependency-path: "go.sum"
2621
- name: Set up Docker Buildx
2722
uses: docker/setup-buildx-action@v3
2823
id: buildx

0 commit comments

Comments
 (0)