forked from Azure/autorest.java
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (55 loc) · 1.68 KB
/
fluent-test-gen-all.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: Fluent Lite - Build and Test Generation for All RPs
on:
schedule:
- cron: 0 18 * * *
workflow_dispatch:
jobs:
build:
timeout-minutes: 120
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Checkout azure-rest-api-specs
uses: actions/checkout@v3
with:
repository: azure/azure-rest-api-specs
path: azure-rest-api-specs
- name: Setup node.js 16
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install autorest
run: |
npm install -g autorest
npm install --no-bin-links
- name: Setup jdk 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Build and Package
run: mvn package -f pom.xml -P local --no-transfer-progress
- name: Setup python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Codegen and Build
run: |
./fluent-tests/gen_all.py -u . -s ./azure-rest-api-specs -r ./fluent-tests
- name: Checkout wiki
uses: actions/checkout@v3
with:
repository: ${{github.repository}}.wiki
path: wiki
- name: Push report
run: |
cp ./fluent-tests/report.md ./wiki/Fluent-Codegen-Report.md
cd wiki
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
{
git add ./Fluent-Codegen-Report.md && \
git commit -m '[Automation] Fluent Codegen Report'
} || true
git push