Caching and CI.
This commit is contained in:
		| @@ -7,13 +7,16 @@ on: | ||||
| jobs: | ||||
|   Linting: | ||||
|     runs-on: "ubuntu-22.04" | ||||
|     env: | ||||
|       GOCACHE: /home/container/go/buildcache | ||||
|       GOMODCACHE: /home/container/go/pkg | ||||
|     steps: | ||||
|       - name: "checkout source" | ||||
|         uses: actions/checkout@v4 | ||||
|       - name: "cache go dependencies" | ||||
|         uses: actions/cache@v4 | ||||
|         with: | ||||
|           path: /root/go/ | ||||
|           path: /home/container/go | ||||
|           key: bunker-go-cache | ||||
|           restore_key: bunker-go-cache | ||||
|       - name: "lint" | ||||
| @@ -23,13 +26,16 @@ jobs: | ||||
|  | ||||
|   Tests: | ||||
|     runs-on: "ubuntu-22.04" | ||||
|     env: | ||||
|       GOCACHE: /home/container/go/buildcache | ||||
|       GOMODCACHE: /home/container/go/pkg | ||||
|     steps: | ||||
|       - name: "checkout source" | ||||
|         uses: actions/checkout@v4 | ||||
|       - name: "cache go dependencies" | ||||
|         uses: actions/cache@v4 | ||||
|         with: | ||||
|           path: /root/go/ | ||||
|           path: /home/container/go | ||||
|           key: bunker-go-cache | ||||
|           restore_key: bunker-go-cache | ||||
|       - name: "tests" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user