Skip to content

Commit d97d432

Browse files
committed
Cache dependencies in CI workflow
1 parent 54cc37e commit d97d432

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,10 @@ jobs:
4747
restore-keys: |
4848
${{ runner.os }}-go-
4949
50-
proxy-sanity-check:
51-
name: Proxy Sanity Check
52-
runs-on: ubuntu-22.04
53-
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.head_ref, 'dependabot-') }}
54-
env:
55-
GOPROXY: "https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_URL_DEV }}"
56-
steps:
57-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
58-
with:
59-
fetch-tags: 'true'
60-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
61-
with:
62-
go-version-file: 'go.mod'
63-
- name: run goproxy-sanity-check
64-
run: |
65-
make build
66-
6750
lint:
6851
name: Lint
6952
runs-on: ubuntu-22.04
70-
depends-on: build
53+
needs: build
7154
steps:
7255
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7356
- name: Configure Go Proxy

0 commit comments

Comments
 (0)