Skip to content

Fluent Lite - Build and Test Generation for All RPs #1466

Fluent Lite - Build and Test Generation for All RPs

Fluent Lite - Build and Test Generation for All RPs #1466

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