-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74314b2
commit f5c3a80
Showing
8 changed files
with
53 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,30 +22,30 @@ jobs: | |
security-events: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4 | ||
- name: Build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew --build-cache build detektMain detektTest detektJsMain detektJsTest detektJvmMain detektJvmTest :koverHtmlReport :koverXmlReport -PciBuild=true | ||
- name: Publish test results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2 | ||
# Also report in case the build failed | ||
if: always() | ||
with: | ||
files: | | ||
**/test-results/**/*.xml | ||
- name: Archive test report | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4 | ||
# Archive test reports for introspection even if the build failed. They are most useful in this situation. | ||
if: always() | ||
with: | ||
|
@@ -54,15 +54,15 @@ jobs: | |
*/build/test-results | ||
*/build/reports | ||
- name: Report test coverage | ||
uses: madrapps/[email protected] | ||
uses: madrapps/jacoco-report@7c362aca34caf958e7b1c03464bd8781db9f8da7 # v1.7.1 | ||
with: | ||
paths: ${{ github.workspace }}/build/reports/kover/report.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
title: JVM coverage report | ||
update-comment: true | ||
# We need to combine the SARIF files because GitHub has a limit of 20 runs. Our number of modules + targets | ||
# exceeds this limit. Therefore, we combine the individual runs in the SARIF files. | ||
- uses: actions/setup-node@v4 | ||
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Combine SARIF files | ||
|
@@ -78,22 +78,22 @@ jobs: | |
# > if you want to run with no globalization support. | ||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1 | ||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v3 | ||
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3 | ||
with: | ||
sarif_file: merged.sarif | ||
category: detekt | ||
|
||
test-model-api-gen-gradle: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4 | ||
- name: Assemble | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -106,14 +106,14 @@ jobs: | |
test-model-client-js: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4 | ||
- name: Assemble | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -126,14 +126,14 @@ jobs: | |
test-bulk-model-sync-gradle: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4 | ||
- name: Assemble | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,25 +7,25 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- uses: actions/cache@v4 | ||
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 | ||
with: | ||
path: node_modules | ||
key: release-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} | ||
- name: Install dependencies | ||
run: npm ci | ||
- uses: actions/setup-python@v5 | ||
- uses: pre-commit/[email protected] | ||
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5 | ||
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | ||
|
||
openapi-linting: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4 | ||
- uses: stoplightio/[email protected] | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
- uses: stoplightio/spectral-action@2ad0b9302e32a77c1caccf474a9b2191a8060d83 # v0.8.11 | ||
with: | ||
file_glob: 'model-server-openapi/specifications/model-server-*.yaml' | ||
spectral_ruleset: .spectral.yaml | ||
|
@@ -37,7 +37,7 @@ jobs: | |
pull-requests: write | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
with: | ||
# We need the history to find the common ancestor of the PR and the target branch from which we fetch the | ||
# baseline OpenAPI specifications to compare against. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters