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