2024-05-01 08:40:31 +02:00
|
|
|
name: Go audit
|
2024-05-02 07:59:57 +02:00
|
|
|
run-name: ${{ gitea.actor }} pulled to main! 🚀
|
2024-05-01 08:40:31 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
jobs:
|
|
|
|
audit:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: '>=1.22.0'
|
|
|
|
|
|
|
|
- name: Verify dependencies
|
|
|
|
run: go mod verify
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build -v ./...
|
|
|
|
|
|
|
|
- name: Run go vet
|
|
|
|
run: go vet ./...
|