Create the API Definitions as Structs in the API Component #21
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: 'ci-go' | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
paths: | |
- '**.go' | |
- '**/go.mod' | |
- '**/go.sum' | |
- 'go.work' | |
jobs: | |
test: | |
permissions: | |
contents: 'read' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
fetch-depth: 1 | |
- name: 'Set up Go' | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version-file: 'go.work' | |
check-latest: true | |
- name: 'Test' | |
run: make test | |
lint: | |
permissions: | |
contents: 'read' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
fetch-depth: 1 | |
- name: 'Set up Go' | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version-file: 'go.work' | |
check-latest: true | |
- name: 'Lint' | |
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0 | |
with: | |
version: 'v1.56.2' | |
args: '-v $(go list -f ''{{.Dir}}/...'' -m | xargs)' |