Tidying up #154
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: "Build and validate Go generated SDK" | |
on: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
# Run generation nightly on latest OpenAPI spec | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
dotnet-version: '7.x.x' | |
- uses: actions/[email protected] | |
with: | |
go-version: '1.20.4' | |
- name: Install kiota | |
run: dotnet tool install --global Microsoft.OpenApi.Kiota --version 1.8.0-preview.202310260001 | |
- name: Download latest schema | |
run: go run schemas/main.go --schema-next=false | |
- name: Run generation | |
run: time kiota generate -l go --ll trace -o generated/go -n kiota -d schemas/downloaded.json | |
- name: Build post-processing | |
run: go build -o post-processors/go/post-processor post-processors/go/main.go | |
- name: Run post-processing | |
run: post-processors/go/post-processor $(pwd)/generated/go | |
- name: Build generated and processed SDK | |
run: | | |
cd generated/go | |
go build ./... |