Create example of generating a go
client
#54
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build_lint_etc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build | |
- name: Run tests | |
run: npm test | |
- name: Archive built docs html | |
uses: actions/upload-artifact@v4 | |
with: | |
name: index.html | |
path: dist/index.html | |
- name: Archive built openapi spec | |
uses: actions/upload-artifact@v4 | |
with: | |
name: openapi.yaml | |
path: tsp-output/@typespec/openapi3/openapi.yaml | |
- name: Archive built json schema | |
uses: actions/upload-artifact@v4 | |
with: | |
name: json-schema.json | |
path: tsp-output/@typespec/json-schema/json-schema.json |