-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (51 loc) · 1.66 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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