Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not cache modules #392

Merged
merged 6 commits into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ on:
env:
GOPATH: /home/runner/go
GOCACHE: /home/runner/go/cache
GOMODCACHE: /home/runner/go/cache/mod
GOMODCACHE: /home/runner/go/mod
GOPROXY: https://proxy.golang.org # remove direct

jobs:
Expand Down Expand Up @@ -82,7 +82,10 @@ jobs:
cache-key: build

- name: Install Task
run: cd tools; go generate -x
run: |
go mod download
go generate -x
working-directory: tools

- name: Run init
run: bin/task init
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
env:
GOPATH: /home/runner/go
GOCACHE: /home/runner/go/cache
GOMODCACHE: /home/runner/go/cache/mod
GOMODCACHE: /home/runner/go/mod
GOPROXY: https://proxy.golang.org # remove direct

jobs:
Expand All @@ -38,7 +38,10 @@ jobs:
cache-key: test

- name: Install Task
run: cd tools; go generate -x
run: |
go mod download
go generate -x
working-directory: tools

- name: Start environment
run: bin/task env-up-detach
Expand Down Expand Up @@ -90,8 +93,10 @@ jobs:
cache-key: fuzz

- name: Install Task
run: cd tools; go generate -x
working-directory: source
run: |
go mod download
go generate -x
working-directory: source/tools

- name: Start pulling environment in the background
run: bin/task env-pull &
Expand Down
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ tasks:

init:
desc: 'Install development tools'
deps: [gen-version]
deps: [gen-version, install-tools]
cmds:
- go mod tidy
- task: install-tools
- go mod verify

env-setup:
deps: [gen-version]
Expand Down