local actions in workflow
This commit is contained in:
27
.gitea/workflows/verify.yml
Normal file
27
.gitea/workflows/verify.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Verify
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: https://dock-it.dev/actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: https://dock-it.dev/actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- name: Verify Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Run Tests
|
||||
run: go test -v ./...
|
||||
Reference in New Issue
Block a user