ci: restore the workflow mistakenly removed earlier
This commit is contained in:
parent
fdf99daa9c
commit
d0c4864582
1 changed files with 22 additions and 0 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@v6
|
||||||
|
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
Reference in a new issue