Skip to content

build(deps): update all non-major dependencies #832

build(deps): update all non-major dependencies

build(deps): update all non-major dependencies #832

Workflow file for this run

name: Go
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: 🛡️ Harden Runner
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
disable-sudo: true
egress-policy: audit
allowed-endpoints: >
github.com:443
- name: 🚚 Check out the repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: 🏗️ Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: "go.mod"
- name: 🏗 Install Swag cli
run: go install github.com/swaggo/swag/cmd/swag@v1.16.6
- name: 🧹 Run Swag fmt
run: swag fmt .
- name: 🧹 Run Swag init
run: swag init --parseDependency --parseInternal --parseDepth 1 -d "./internal/api/handlers" -g "./root.go" -o "./internal/api/docs"
- name: 👀 Check for uncommitted changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "Swagger documentation is out of date. Please run 'swag init' and commit the results."
git diff
exit 1
fi