mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-07 06:12:04 +00:00
# Which Problems Are Solved We move the login code to the zitadel repo. # How the Problems Are Solved The login repo is added to ./login as a git subtree pulled from the dockerize-ci branch. Apart from the login code, this PR contains the changes from #10116 # Additional Context - Closes https://github.com/zitadel/typescript/issues/474 - Also merges #10116 - Merging is blocked by failing check because of: - https://github.com/zitadel/zitadel/pull/10134#issuecomment-3012086106 --------- Co-authored-by: Max Peintner <peintnerm@gmail.com> Co-authored-by: Max Peintner <max@caos.ch> Co-authored-by: Florian Forster <florian@zitadel.com>
60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
name: Login Quality
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
ignore-run-cache:
|
|
description: 'Ignore run caches'
|
|
type: boolean
|
|
required: true
|
|
node_version:
|
|
required: true
|
|
type: string
|
|
jobs:
|
|
quality:
|
|
name: Ensure Quality
|
|
runs-on: depot-ubuntu-22.04-8
|
|
timeout-minutes: 30
|
|
permissions:
|
|
id-token: write
|
|
actions: write
|
|
env:
|
|
CACHE_DIR: /tmp/login-run-caches
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: depot/setup-action@v1
|
|
with:
|
|
oidc: true
|
|
- name: Restore Run Caches
|
|
uses: actions/cache/restore@v4
|
|
id: run-caches-restore
|
|
with:
|
|
path: ${{ env.CACHE_DIR }}
|
|
key: ${{ runner.os }}-login-run-caches-${{github.ref_name}}-${{ github.sha }}-${{github.run_attempt}}
|
|
restore-keys: |
|
|
${{ runner.os }}-login-run-caches-${{github.ref_name}}-${{ github.sha }}-
|
|
${{ runner.os }}-login-run-caches-${{github.ref_name}}-
|
|
${{ runner.os }}-login-run-caches-
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
path: .artifacts
|
|
name: zitadel-linux-amd64
|
|
- name: Unpack executable
|
|
run: |
|
|
tar -xvf .artifacts/zitadel-linux-amd64.tar.gz
|
|
mv zitadel-linux-amd64/zitadel ./zitadel
|
|
- run: make login_quality
|
|
env:
|
|
# latest if branch is main, otherwise image version which is the pull request number
|
|
LOGIN_BAKE_CLI: depot bake
|
|
DEPOT_PROJECT_ID: w47wkxzdtw
|
|
IGNORE_RUN_CACHE: ${{ github.event.inputs.ignore-run-cache }}
|
|
NODE_VERSION: ${{ inputs.node_version }}
|
|
|
|
- name: Save Run Caches
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
path: ${{ env.CACHE_DIR }}
|
|
key: ${{ steps.run-caches-restore.outputs.cache-primary-key }}
|
|
if: always()
|