Skip to content

Merge pull request #998 from NBISweden/dependabot/docker/production/n… #1599

Merge pull request #998 from NBISweden/dependabot/docker/production/n…

Merge pull request #998 from NBISweden/dependabot/docker/production/n… #1599

Workflow file for this run

---
name: API docs
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.19]
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get swag
run: |
go get github.com/swaggo/swag/[email protected]
go get github.com/swaggo/swag/cmd/[email protected]
go install github.com/swaggo/swag/cmd/[email protected]
working-directory: backend
- name: Check that docs can be created
run: swag init -g api/api.go
working-directory: backend