feat: support openapi and builtin swagger ui #705
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: golangci-lint | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
permissions: | |
contents: read | |
# Optional: allow read access to pull request. Use with `only-new-issues` option. | |
# pull-requests: read | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go go1.19 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Get dependencies | |
run: | | |
go env | |
go mod tidy -v | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
args: "--out-${NO_FUTURE}format colored-line-number" | |
skip-build-cache: false | |
skip-cache: false | |
skip-pkg-cache: false | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
only-new-issues: false |