mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 02:10:40 +00:00
33 lines
873 B
YAML
33 lines
873 B
YAML
|
name: compliance
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
branches:
|
||
|
- 'forgejo*'
|
||
|
- 'v*/forgejo*'
|
||
|
|
||
|
jobs:
|
||
|
lint-backend:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
||
|
- uses: https://code.forgejo.org/actions/setup-go@v4
|
||
|
with:
|
||
|
go-version: ">=1.20"
|
||
|
check-latest: true
|
||
|
- run: make deps-backend deps-tools
|
||
|
- run: make lint-backend
|
||
|
env:
|
||
|
TAGS: bindata sqlite sqlite_unlock_notify
|
||
|
checks-backend:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
||
|
- uses: https://code.forgejo.org/actions/setup-go@v4
|
||
|
with:
|
||
|
go-version: ">=1.20"
|
||
|
check-latest: true
|
||
|
- run: make deps-backend deps-tools
|
||
|
- run: make --always-make checks-backend # ensure the "go-licenses" make target runs
|