From 976394b29d264bf231537c8b11c4f3c04de03675 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 28 Jun 2023 01:38:18 -0400 Subject: [PATCH] ci: setup swagger build --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a84565..b05e5d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,14 @@ jobs: node-version: 18.x cache: 'npm' - run: npm ci - - run: go build . + - name: Setup Swagger + run: | + go install github.com/swaggo/swag/cmd/swag@latest; + swag init -g main.go; + swag fmt; + + - name: Build + run: go build . - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: