-
Notifications
You must be signed in to change notification settings - Fork 43
Modernize CI #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,076
−68
Merged
Modernize CI #594
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c63a3d5
ci: modernise the workflow and check every SDK builds against the bundle
ariesclark c6813f4
ci: call each SDK's renamed ci workflow
ariesclark 795bfb5
ci: update github-script and download-artifact to current majors
ariesclark c210a49
Potential fix for pull request finding
ariesclark 0c8efb5
ci: trigger a pull request run to check preview reporting
ariesclark fb46d00
fix: order engines after main in package.json
ariesclark a5c228f
ci: comment how to install the SDKs this run built
ariesclark 8ffbd9c
ci: report SDK progress in one comment while the run is still going
ariesclark da54111
ci: let each SDK report its own install command
ariesclark a37ae96
ci: group the report by what each SDK is doing
ariesclark 8e7e921
ci: report from the start of the run and name the commit
ariesclark ae8f91f
fix(ci): leave the finished report to the job that knows the commands
ariesclark 7fdbf56
ci: report each SDK as it finishes and group bundles by format
ariesclark c108bcf
ci: keep the SDK catalogue in the report action
ariesclark 99af83a
fix(ci): forget what an earlier commit reported
ariesclark 6d8e114
ci: drop the pull request report
ariesclark ae182d3
ci: let download resolve the bundle a release dispatched
ariesclark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Fetch a specification bundle | ||
| description: >- | ||
| Leaves the requested bundle in the working directory, taken from this run's | ||
| artifacts when running inside the specification repository, from the release | ||
| that triggered the run when there is one, and from the latest release | ||
| otherwise. | ||
|
|
||
| inputs: | ||
| bundle: | ||
| description: >- | ||
| Bundle to fetch. | ||
| required: false | ||
| default: openapi.json | ||
| url: | ||
| description: >- | ||
| Where to fetch the bundle from, overriding both the triggering release and | ||
| the latest one. | ||
| required: false | ||
| default: "" | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - if: github.repository == 'vrchatapi/specification' | ||
| uses: actions/download-artifact@v8 | ||
| with: | ||
| name: ${{ inputs.bundle }} | ||
| path: . | ||
|
|
||
| - if: github.repository != 'vrchatapi/specification' | ||
| run: >- | ||
| curl -Lfo "${{ inputs.bundle }}" "${{ inputs.url | ||
| || github.event.client_payload.artifacts[inputs.bundle] | ||
| || format('https://github.com/vrchatapi/specification/releases/latest/download/{0}', inputs.bundle) }}" | ||
| shell: bash |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Install the OpenAPI generator | ||
| description: >- | ||
| Puts `openapi-generator` on the path at the version openapitools.json pins. | ||
| The generator is a Java program and the runner image already ships a JDK, so | ||
| nothing here needs Node. | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: actions/cache@v6 | ||
| with: | ||
| path: ~/.cache/openapi-generator | ||
| key: openapi-generator-${{ hashFiles('openapitools.json') }} | ||
|
|
||
| - run: | | ||
| set -euo pipefail | ||
|
|
||
| version=$(jq -re '."generator-cli".version' openapitools.json) | ||
| jar="$HOME/.cache/openapi-generator/openapi-generator-cli-$version.jar" | ||
|
|
||
| [ -f "$jar" ] || curl -fsSL --create-dirs -o "$jar" \ | ||
| "https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/$version/openapi-generator-cli-$version.jar" | ||
|
|
||
| mkdir -p "$HOME/.local/bin" | ||
| printf '#!/usr/bin/env bash\nexec java -jar %s "$@"\n' "$jar" > "$HOME/.local/bin/openapi-generator" | ||
| chmod +x "$HOME/.local/bin/openapi-generator" | ||
| printf '%s\n' "$HOME/.local/bin" >> "$GITHUB_PATH" | ||
| shell: bash |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.