support: add test workflow
This commit is contained in:
parent
0e036c7c7d
commit
1f1a3885e0
2 changed files with 34 additions and 14 deletions
22
.forgejo/workflows/test.yml
Normal file
22
.forgejo/workflows/test.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
linting:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: stable
|
||||
- uses: https://github.com/golangci/golangci-lint-action@v4
|
||||
tests:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: stable
|
||||
- name: Install dependencies
|
||||
run: go get .
|
||||
- name: Run tests
|
||||
run: go test
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue