forked from AmadeusITGroup/otter
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
3 changed files
with
103 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Check all releases (latest patch of each minor version) | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "20 * * * *" | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
env: | ||
YARN_ENABLE_HARDENED_MODE: 0 | ||
|
||
jobs: | ||
findTags: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tags: ${{ steps.getTags.outputs.TAGS }} | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
- run: | | ||
TAGS=$(git tag -l | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | awk -F. '{print $1"."$2}' | uniq | xargs -I {} sh -c 'git tag -l "{}.*" | sort -V | tail -n 1' | xargs -d'\n' -I {} echo '"{}"' | tr '\n' ',') | ||
echo "TAGS=[$TAGS]" >> "$GITHUB_OUTPUT" | ||
id: getTags | ||
checkRelease: | ||
needs: findTags | ||
strategy: | ||
matrix: | ||
#tag: ${{ fromJSON(needs.findTags.outputs.tags) }} | ||
tag: [v10.4.9, v11.0.6] | ||
uses: ./.github/workflows/check-release.yml | ||
with: | ||
ref: ${{ matrix.tag }} | ||
|
||
report: | ||
runs-on: ubuntu-latest | ||
needs: checkRelease | ||
if: failure() | ||
steps: | ||
- run: echo TODO create issue |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Check release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
type: string | ||
required: true | ||
description: The branch, tag or SHA to checkout. | ||
workflow_call: | ||
inputs: | ||
ref: | ||
type: string | ||
default: '' | ||
description: The branch, tag or SHA to checkout. | ||
secrets: | ||
NX_CLOUD_ACCESS_TOKEN: | ||
required: false | ||
description: Token to use Nx Cloud token | ||
|
||
env: | ||
YARN_ENABLE_HARDENED_MODE: 0 | ||
|
||
jobs: | ||
buildRelease: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
- uses: ./tools/github-actions/setup | ||
- uses: ./.github/actions/setup-java | ||
with: | ||
install-jdk: 'true' | ||
- run: yarn build:swagger-gen | ||
- run: yarn build | ||
- uses: ./tools/github-actions/upload-build-output | ||
with: | ||
artifactName: 'dist-${{ inputs.ref }}' | ||
|
||
testRelease: | ||
needs: [buildRelease] | ||
uses: ./.github/workflows/it-tests.yml | ||
with: | ||
ref: ${{ inputs.ref }} | ||
skipNxCache: true |
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