This commit is contained in:
parent
dc3a74cfb6
commit
221dbecf14
@ -10,20 +10,22 @@ jobs:
|
||||
steps:
|
||||
- name: "checkout source"
|
||||
uses: actions/checkout@v4
|
||||
- name: "restore cache with go things"
|
||||
uses: actions/cache/restore@v4
|
||||
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||
id: hash-go
|
||||
with:
|
||||
patterns: |
|
||||
go.mod
|
||||
go.sum
|
||||
- name: "cache with go things"
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /home/container
|
||||
key: bunker-go-cache
|
||||
key: bunker-go-cache-${{ steps.hash-go.outputs.hash }}
|
||||
restore-keys: bunker-go-cache-${{ steps.hash-go.outputs.hash }}
|
||||
- name: "lint"
|
||||
uses: docker://code.pztrn.name/containers/go-toolbox:v8
|
||||
with:
|
||||
command: "/usr/local/bin/task lint"
|
||||
- name: "save cache with go things"
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: /home/container
|
||||
key: bunker-go-cache
|
||||
|
||||
# Tests:
|
||||
# runs-on: "ubuntu-22.04"
|
||||
|
Loading…
x
Reference in New Issue
Block a user