Skip to content

Commit e33ac3e

Browse files
committed
gha: remove working-dir and GOPATH
We're only working with modules in this repo, so we should not have a need for this. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f69b90b commit e33ac3e

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020

2121
- name: Set env
2222
shell: bash
23+
# TODO(thaJeztah): remove working-directory, path, and GOPATH once project-checks stops needing them; see https://github.com/containerd/nri/pull/53/commits/872fb0ce3dce136f3ae67c068ce78607565194ef#r1324366346
2324
run: |
2425
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
2526
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
@@ -40,22 +41,17 @@ jobs:
4041

4142
steps:
4243
- uses: actions/checkout@v3
43-
with:
44-
path: src/github.com/containerd/nri
45-
4644
- uses: actions/setup-go@v3
4745
with:
4846
go-version: 1.20.x
4947

5048
- name: Set env
5149
shell: bash
5250
run: |
53-
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
5451
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
5552
5653
- run: |
5754
make all
58-
working-directory: src/github.com/containerd/nri
5955
6056
linters:
6157
name: Linters
@@ -69,23 +65,18 @@ jobs:
6965

7066
steps:
7167
- uses: actions/checkout@v3
72-
with:
73-
path: src/github.com/containerd/nri
74-
7568
- uses: actions/setup-go@v3
7669
with:
7770
go-version: ${{ matrix.go }}
7871

7972
- name: Set env
8073
shell: bash
8174
run: |
82-
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
8375
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
8476
8577
- uses: golangci/golangci-lint-action@v3
8678
with:
8779
version: v1.51.2
88-
working-directory: src/github.com/containerd/nri
8980

9081
tests:
9182
name: Tests
@@ -98,19 +89,14 @@ jobs:
9889

9990
steps:
10091
- uses: actions/checkout@v3
101-
with:
102-
path: src/github.com/containerd/nri
103-
10492
- uses: actions/setup-go@v3
10593
with:
10694
go-version: ${{ matrix.go }}
10795

10896
- name: Set env
10997
shell: bash
11098
run: |
111-
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
11299
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
113100
114101
- run: |
115102
make install-ginkgo test codecov
116-
working-directory: src/github.com/containerd/nri

0 commit comments

Comments
 (0)