Skip to content

Commit

Permalink
Bug/Go Dependecies
Browse files Browse the repository at this point in the history
- Tidy up go dependencies

Signed-off-by: Harold Wanyama <hwanyama@contractor.linuxfoundation.org>
  • Loading branch information
nickmango committed Jun 5, 2024
1 parent beec3e0 commit 6887db0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-go-
- name: Configure Git to clone private Github repos
run: git config --global url."https://${TOKEN}@github.com".insteadOf "https://github.com"
run: git config --global url."https://${TOKEN_USER}:${TOKEN}@github.com".insteadOf "https://github.com"
env:
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
TOKEN_USER: ${{ secrets.PERSONAL_ACCESS_TOKEN_USER }}

- name: Add OS Tools
run: sudo apt update && sudo apt-get install file -y
Expand Down Expand Up @@ -77,7 +78,10 @@ jobs:
- name: Go Dependencies
working-directory: cla-backend-go
run: make deps
run: |
go mod tidy
go mod download
make deps
- name: Go Swagger Generate
working-directory: cla-backend-go
Expand Down

0 comments on commit 6887db0

Please sign in to comment.