10
10
jobs :
11
11
Unit-Tests :
12
12
runs-on : ubuntu-20.04
13
+ strategy :
14
+ max-parallel : 10
15
+ matrix :
16
+ node-version : [ 18.x, 20.x ]
17
+ language-variant : [ 'csharp-httpclient', 'csharp-restsharp', 'curl', 'dart-dio', 'dart-http', 'golang', 'http',
18
+ ' java-okhttp' , 'java-unirest', 'js-fetch', 'js-jquery', 'js-xhr', 'kotlin-okhttp', 'libcurl',
19
+ ' nodejs-axios' , 'nodejs-native', 'nodejs-request', 'nodejs-unirest', 'objective-c', 'ocaml-cohttp',
20
+ ' php-curl' , 'php-guzzle', 'php-httprequest2', 'php-pecl-http', 'powershell-restmethod',
21
+ ' python-http.client' , 'python-requests', 'r-httr', 'r-rcurl', 'ruby', 'rust-reqwest',
22
+ ' shell-httpie' , 'shell-wget', 'swift' ]
13
23
steps :
14
24
- name : Get Code
15
25
uses : actions/checkout@v3
16
- - name : Setup Node JS
26
+ - name : Use Node JS ${{ matrix.node-version }}
17
27
uses : actions/setup-node@v1
18
28
with :
19
- node-version : ' 12.x'
20
- - name : Install system dependencies
21
- run : npm run cirequirements
29
+ node-version : ${{ matrix.node-version }}
22
30
- name : Install package dependencies
23
31
run : npm install
32
+ - name : Install system dependencies
33
+ run : npm run cirequirements ${{ matrix.language-variant }}
24
34
- name : Install dependencies for individual codegens
25
35
run : npm run deepinstall dev
26
36
- name : Run tests
27
- run : npm run test
37
+ run : npm run test ${{ matrix.language-variant }}
0 commit comments