Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/auth-react-test-1-django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- opened
- reopened
- synchronize
- labeled
- unlabeled
push:
tags:
- dev-v[0-9]+.[0-9]+.[0-9]+
branches:
- '[0-9]+.[0-9]+'

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
Expand All @@ -18,6 +20,7 @@ concurrency:

jobs:
define-versions:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
runs-on: ubuntu-latest
outputs:
fdiVersions: ${{ steps.versions.outputs.fdiVersions }}
Expand Down Expand Up @@ -49,6 +52,7 @@ jobs:
fdi-versions: ${{ steps.versions.outputs.fdiVersions }}

setup-auth-react:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
runs-on: ubuntu-latest
needs: define-versions
strategy:
Expand Down Expand Up @@ -93,6 +97,7 @@ jobs:
spec: ${{ steps.envs.outputs.specs }}

launch-fdi-workflows:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
uses: ./.github/workflows/auth-react-test-2.yml
needs:
- define-versions
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/auth-react-test-1-fastapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- opened
- reopened
- synchronize
- labeled
- unlabeled
push:
tags:
- dev-v[0-9]+.[0-9]+.[0-9]+
branches:
- '[0-9]+.[0-9]+'

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
Expand All @@ -18,6 +20,7 @@ concurrency:

jobs:
define-versions:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
runs-on: ubuntu-latest
outputs:
fdiVersions: ${{ steps.versions.outputs.fdiVersions }}
Expand Down Expand Up @@ -49,6 +52,7 @@ jobs:
fdi-versions: ${{ steps.versions.outputs.fdiVersions }}

setup-auth-react:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
runs-on: ubuntu-latest
needs: define-versions
strategy:
Expand Down Expand Up @@ -93,6 +97,7 @@ jobs:
spec: ${{ steps.envs.outputs.specs }}

launch-fdi-workflows:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
uses: ./.github/workflows/auth-react-test-2.yml
needs:
- define-versions
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/auth-react-test-1-flask.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- opened
- reopened
- synchronize
- labeled
- unlabeled
push:
tags:
- dev-v[0-9]+.[0-9]+.[0-9]+
branches:
- '[0-9]+.[0-9]+'

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
Expand All @@ -18,6 +20,7 @@ concurrency:

jobs:
define-versions:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
runs-on: ubuntu-latest
outputs:
fdiVersions: ${{ steps.versions.outputs.fdiVersions }}
Expand Down Expand Up @@ -49,6 +52,7 @@ jobs:
fdi-versions: ${{ steps.versions.outputs.fdiVersions }}

setup-auth-react:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
runs-on: ubuntu-latest
needs: define-versions
strategy:
Expand Down Expand Up @@ -93,6 +97,7 @@ jobs:
spec: ${{ steps.envs.outputs.specs }}

launch-fdi-workflows:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
uses: ./.github/workflows/auth-react-test-2.yml
needs:
- define-versions
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/auth-react-test-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ on:

jobs:
retrieve-matrix:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
runs-on: ubuntu-latest

outputs:
Expand All @@ -55,6 +56,7 @@ jobs:
echo "matrix=$matrix" | tee -a "$GITHUB_OUTPUT"

launch-test-workflows:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
needs:
- retrieve-matrix

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auth-react-test-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ on:

jobs:
test:
if: ${{ inputs.matrix != '{"include":[]}' }}
if: inputs.matrix != '{"include":[]}' && (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests'))
runs-on: ubuntu-latest
strategy:
max-parallel: 10
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/backend-sdk-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- opened
- reopened
- synchronize
- labeled
- unlabeled
push:
tags:
- dev-v[0-9]+.[0-9]+.[0-9]+
branches:
- '[0-9]+.[0-9]+'

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
Expand All @@ -18,6 +20,7 @@ concurrency:

jobs:
define-versions:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
runs-on: ubuntu-latest
outputs:
fdiVersions: ${{ steps.versions.outputs.fdiVersions }}
Expand All @@ -42,6 +45,7 @@ jobs:
cdi-versions: ${{steps.versions.outputs.cdiVersions }}

test:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
runs-on: ubuntu-latest
needs: define-versions

Expand Down
89 changes: 89 additions & 0 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: "Check if docs need an update"

on:
push:
branches:
- '[0-9]+.[0-9]+'

permissions:
contents: write

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-docs:
name: Check if docs need an update
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
# Need a complete fetch to make the master merge check work
fetch-depth: 0
fetch-tags: true
token: ${{ secrets.ALL_REPO_PAT }}


- name: Setup git
run: |
# NOTE: The user email is {user.id}+{user.login}@users.noreply.github.com.
# See users API: https://api.github.com/users/github-actions%5Bbot%5D
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

git fetch origin master

- uses: actions/setup-python@v5
with:
python-version: 3.13

- name: Populate variables
id: versions
run: |
. ./hooks/populate-hook-constants.sh

echo "constantsVersion=$constantsVersion" | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV"
echo "constantsVersionXy=$constantsVersionXy" | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV"
echo "setupVersion=$setupVersion" | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV"
echo "setupVersionXy=$setupVersionXy" | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV"
echo "newestVersion=$newestVersion" | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV"
echo "targetBranch=$targetBranch" | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV"

- name: Check tag and branch correctness
run: |
if [[ "${{ steps.versions.outputs.constantsVersion }}" != "${{ steps.versions.outputs.setupVersion }}" ]];
then
echo "Constants version and setup version mismatch"
exit 1
fi

if [[ "refs/heads/${{ steps.versions.outputs.setupVersion }}" != ${{ github.ref }}* ]]
then
echo "Branch name and setup version mismatch"
exit 1
fi

- name: Install dependencies
run: make dev-install

- name: Build docs
run: make build-docs


- name: Check for changes in docs and create a commit if necessary
run: |
git update-index --really-refresh

if git diff-index --quiet HEAD; then
# No-op, docs are updated
else
# Update docs and create a commit on the branch
git add --all
git commit --allow-empty -nm "doc: update docs for ${{ steps.versions.outputs.releaseTag }} tag"
git push
fi
6 changes: 4 additions & 2 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- opened
- reopened
- synchronize
- labeled
- unlabeled
push:
tags:
- dev-v[0-9]+.[0-9]+.[0-9]+
branches:
- '[0-9]+.[0-9]+'

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- reopened
- edited
- synchronize
- labeled
- unlabeled

# Only one instance of this workflow will run on the same ref (PR/Branch/Tag)
# Previous runs will be cancelled.
Expand Down
Loading
Loading