mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-12-19 20:32:38 +03:00
25 lines
565 B
YAML
25 lines
565 B
YAML
|
name: checks
|
||
|
on:
|
||
|
- pull_request
|
||
|
- push
|
||
|
|
||
|
env:
|
||
|
GOPROXY: https://goproxy.io,direct
|
||
|
|
||
|
jobs:
|
||
|
lint:
|
||
|
name: check and test
|
||
|
if: github.repository_owner != 'forgejo-integration' && github.repository_owner != 'forgejo-experimental' && github.repository_owner != 'forgejo-release'
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: 1.20
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: vet checks
|
||
|
run: make vet
|
||
|
- name: build
|
||
|
run: make build
|
||
|
- name: test
|
||
|
run: make test
|