Skip to content

Misc fixes

Misc fixes #206

Workflow file for this run

name: Build
on:
push:
branches:
- main
- release-*
tags:
- v*
pull_request:
branches:
- main
- release-*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- uses: denoland/setup-deno@v1
with:
deno-version: v1.40
- name: Run tests
run: deno test test/**/*.test.ts
- uses: actions/setup-go@v3
with:
go-version: "1.21"
- name: Bundle module and dependencies
run: deno bundle src/mod.ts bundle.js
- name: Install Apex CLI
run: deno install -A -f -n apex https://deno.land/x/[email protected]/apex.ts
- name: Install Protoc
run: |
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
sudo unzip protoc-3.15.8-linux-x86_64.zip -d /usr/local
- name: Install protoc-gen-go
run: |
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
- name: Install swagger-cli
run: npm install -g @apidevtools/swagger-cli
- name: Run the difference test
run: ./diffcheck.sh
working-directory: ./testdata
- name: Validate generated OpenAPI
run: find . -name 'openapi.yaml' -exec swagger-cli validate {} \;
working-directory: ./testdata