forgejo-runner/.forgejo/workflows/test.yml

26 lines
440 B
YAML
Raw Normal View History

2023-02-28 23:07:43 +00:00
name: checks
on:
- push
- pull_request
- push:
branches: [main]
2023-02-28 23:07:43 +00:00
env:
GOPROXY: https://goproxy.io,direct
jobs:
lint:
name: check and test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
2023-03-23 06:12:43 +00:00
go-version: 1.19
2023-02-28 23:07:43 +00:00
- uses: actions/checkout@v3
- name: vet checks
run: make vet
- name: build
run: make build
- name: test
2023-03-23 06:12:43 +00:00
run: make test