Skip to content

Commit

Permalink
gha: remove working-dir and GOPATH
Browse files Browse the repository at this point in the history
We're only working with modules in this repo, so we should not have
a need for this.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Sep 15, 2023
1 parent f69b90b commit e33ac3e
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:

- name: Set env
shell: bash
# 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
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
Expand All @@ -40,22 +41,17 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/nri

- uses: actions/setup-go@v3
with:
go-version: 1.20.x

- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- run: |
make all
working-directory: src/github.com/containerd/nri
linters:
name: Linters
Expand All @@ -69,23 +65,18 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/nri

- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
working-directory: src/github.com/containerd/nri

tests:
name: Tests
Expand All @@ -98,19 +89,14 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/nri

- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- run: |
make install-ginkgo test codecov
working-directory: src/github.com/containerd/nri

0 comments on commit e33ac3e

Please sign in to comment.