Skip to content

[WIP]Chao/action auto swagger #40

[WIP]Chao/action auto swagger

[WIP]Chao/action auto swagger #40

Workflow file for this run

on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.0'
- name: Build
run: go build -v ./...
- name: Audit
run: go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./...
- name: Test
run: go test -v ./...
- name: Swagger
run: chmod +x ./.github/scripts/auto-swagger.sh && ./.github/scripts/auto-swagger.sh
name: Building And Testing