Skip to content

Commit

Permalink
Do not cache modules (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi authored Mar 24, 2022
1 parent 6abe71c commit e979cfb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
5 changes: 3 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,8 @@ jobs:
cache-key: build

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

- name: Run init
run: bin/task init
Expand Down
9 changes: 5 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,8 @@ jobs:
cache-key: test

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

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

- name: Install Task
run: cd tools; go generate -x
working-directory: source
run: 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

0 comments on commit e979cfb

Please sign in to comment.