-
Notifications
You must be signed in to change notification settings - Fork 82
71 lines (64 loc) · 1.87 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
62
63
64
65
66
67
68
69
70
71
name: Fluent Lite - Build and Test Generation for All RPs
on:
schedule:
- cron: 0 18 * * *
workflow_dispatch:
jobs:
build:
timeout-minutes: 180
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
deployments: none
packages: none
pull-requests: none
security-events: none
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Checkout azure-rest-api-specs
uses: actions/checkout@v4
with:
repository: azure/azure-rest-api-specs
path: azure-rest-api-specs
- name: Install node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install autorest
run: |
npm install -g autorest
npm ci --no-bin-links
- name: Setup jdk 11
uses: actions/setup-java@v4
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@v4
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