dev/actions #26
@@ -8,21 +8,15 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: golang:1.22
|
image: golang:1.22
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go cache
|
- name: Go dependencies
|
||||||
uses: actions/cache@v3
|
shell: sh
|
||||||
with:
|
run: |
|
||||||
path: |
|
go mod tidy
|
||||||
~/go/pkg/mod
|
|
||||||
~/.cache/go-build
|
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
go mod tidy
|
|
||||||
go test ./... -v
|
go test ./... -v
|
||||||
|
|||||||
Reference in New Issue
Block a user