-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (39 loc) · 1.36 KB
/
tests-e2e.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
name: E2E Tests
on:
push:
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 0 */7 * *'
jobs:
tests:
name: '${{matrix.platform}} w/ Node.js ${{matrix.node}}.x w/ ${{matrix.manager}}'
runs-on: ${{matrix.platform}}
strategy:
fail-fast: false
matrix:
node:
- 14
- 16
- 18
- 19
platform:
- ubuntu-latest
- windows-latest
- macos-latest
manager:
- yarn dlx
- npx
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Enable corepack
run: corepack enable && yarn set version berry
- name: Run E2E - Petstore 3 - with ${{matrix.manager}}
run: ${{matrix.manager}} @typoas/cli generate -i https://petstore3.swagger.io/api/v3/openapi.json -o test.ts
- name: Run E2E - Stripe - with ${{matrix.manager}}
run: ${{matrix.manager}} @typoas/cli generate -i https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json -o test.ts
# - name: Run E2E - Github - with ${{matrix.manager}}
# run: ${{matrix.manager}} @typoas/cli generate -i https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.yaml -o test.ts