This commit is contained in:
Muyao 2024-08-27 09:43:13 +08:00
Родитель 5fbb9a3952
Коммит d164bdc767
3 изменённых файлов: 61 добавлений и 37 удалений

32
.github/workflows/broken-link-check.yml поставляемый
Просмотреть файл

@ -18,28 +18,36 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Check-Links-Action name: Check-Links-Action
steps: steps:
- uses: snow-actions/sparse-checkout@v1.1.0 - uses: actions/checkout@v4
name: Checkout Azure/azure-sdk-for-java name: Checkout Azure/azure-sdk-for-java
with: with:
patterns: | repository: 'Azure/azure-sdk-for-java'
sdk/spring eng sdk/keyvault sdk/boms sdk/aot sdk/jdbc path: 'azure-sdk-for-java'
repository: Azure/azure-sdk-for-java
ref: main ref: main
path: azure-sdk-for-java fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4.2.2
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build latest azure-sdk-for-java repository - name: Build latest azure-sdk-for-java repository
run: | run: |
cd azure-sdk-for-java cd azure-sdk-for-java
mvn clean install -Dmaven.javadoc.skip=true -DskipTests \ mvn clean install \
-Dcheckstyle.skip=true \ -Dcheckstyle.skip=true \
-ntp \ -Dcodesnippet.skip \
-Denforcer.skip \
-Djacoco.skip=true \
-Dmaven.javadoc.skip=true \
-Drevapi.skip=true \
-DskipTests \
-Dspotbugs.skip=true \ -Dspotbugs.skip=true \
-Drevapi.skip=true -Djacoco.skip=true \ -Pdev -T 4 -ntp -f sdk/spring/pom.xml
-Dparallel-test-playback \
-Pdev \
-f sdk/spring/pom.xml
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Build Docs - name: Build Docs
run: | run: |

37
.github/workflows/update-docs.yaml поставляемый
Просмотреть файл

@ -19,38 +19,47 @@ jobs:
updateDocs: updateDocs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: snow-actions/sparse-checkout@v1.1.0 - uses: actions/checkout@v3
name: Checkout Azure/azure-sdk-for-java name: Checkout Azure/azure-sdk-for-java
with: with:
patterns: |
sdk/spring eng sdk/keyvault sdk/boms sdk/aot sdk/jdbc
repository: Azure/azure-sdk-for-java repository: Azure/azure-sdk-for-java
ref: main ref: main
path: azure-sdk-for-java fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4.2.2
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build latest azure-sdk-for-java repository - name: Build latest azure-sdk-for-java repository
run: | run: |
cd azure-sdk-for-java mvn clean install \
mvn clean install -Dmaven.javadoc.skip=true -DskipTests \
-Dcheckstyle.skip=true \ -Dcheckstyle.skip=true \
-ntp \ -Dcodesnippet.skip \
-Denforcer.skip \
-Djacoco.skip=true \
-Dmaven.javadoc.skip=true \
-Drevapi.skip=true \
-DskipTests \
-Dspotbugs.skip=true \ -Dspotbugs.skip=true \
-Drevapi.skip=true -Djacoco.skip=true \ -Pdev -T 4 -ntp -f sdk/spring/pom.xml
-Dparallel-test-playback \
-Pdev \
-f sdk/spring/pom.xml
- name: Get current date - name: Get current date
id: date id: date
run: echo "date=$(date +'%Y-%m-%d' --utc)" >> $GITHUB_OUTPUT run: echo "date=$(date +'%Y-%m-%d' --utc)" >> $GITHUB_OUTPUT
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
- run: | - run: |
git config user.name github-actions git config user.name github-actions
git config user.email github-actions@github.com git config user.email github-actions@github.com
- uses: actions/setup-java@v1 - uses: actions/setup-java@v4.2.2
with: with:
java-version: 11 java-version: 17
distribution: 'temurin'
- uses: actions/cache@v2 - uses: actions/cache@v2
id: mvn-cache id: mvn-cache

Просмотреть файл

@ -12,26 +12,33 @@ jobs:
update_properties_table_in_ms_docs_job: update_properties_table_in_ms_docs_job:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: snow-actions/sparse-checkout@v1.1.0 - uses: actions/checkout@v3
name: Checkout Azure/azure-sdk-for-java name: Checkout Azure/azure-sdk-for-java
with: with:
patterns: | repository: 'Azure/azure-sdk-for-java'
sdk/spring eng sdk/keyvault sdk/boms sdk/aot sdk/jdbc path: 'azure-sdk-for-java'
repository: Azure/azure-sdk-for-java
ref: main ref: main
path: azure-sdk-for-java fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v4.2.2
with:
java-version: '17'
distribution: 'temurin'
- name: Build latest azure-sdk-for-java repository - name: Build latest azure-sdk-for-java repository
run: | run: |
cd azure-sdk-for-java cd azure-sdk-for-java
mvn clean install -Dmaven.javadoc.skip=true -DskipTests \ mvn clean install \
-Dcheckstyle.skip=true \ -Dcheckstyle.skip=true \
-ntp \ -Dcodesnippet.skip \
-Denforcer.skip \
-Djacoco.skip=true \
-Dmaven.javadoc.skip=true \
-Drevapi.skip=true \
-DskipTests \
-Dspotbugs.skip=true \ -Dspotbugs.skip=true \
-Drevapi.skip=true -Djacoco.skip=true \ -T 4 -ntp -Pdev -f sdk/spring/pom.xml
-Dparallel-test-playback \
-Pdev \
-f sdk/spring/pom.xml
- uses: actions/checkout@v3 - uses: actions/checkout@v3
name: Checkout microsoft/spring-cloud-azure name: Checkout microsoft/spring-cloud-azure