Misc fixes #207
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 | |
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 | |
# Temporarily disable until it's determined why apex generate is not writing files. | |
# - 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 |