From 33d08860bcfd7ddf5819dffea413d3a84752b460 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Thu, 24 Jul 2025 14:03:54 +0200 Subject: [PATCH] ci --- .github/workflows/lint.yml | 8 +++-- .github/workflows/login-integration-test.yml | 31 ++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/login-integration-test.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ef289463e0..312b891637 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -53,12 +53,16 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Run lint and unit tests in dev container + - name: Set up pnpm caching + uses: actions/setup-node@v4 + with: + cache: 'pnpm' + - name: Lint and Unit Test All JavaScript Code uses: devcontainers/ci@v0.3 with: push: never configFile: .devcontainer/turbo-lint-unit/devcontainer.json - runCmd: echo "Successfully ran lint and unit tests in dev container postStartCommand" + runCmd: echo "Successfully ran postStartCommand" core: name: core diff --git a/.github/workflows/login-integration-test.yml b/.github/workflows/login-integration-test.yml new file mode 100644 index 0000000000..cfd33c578f --- /dev/null +++ b/.github/workflows/login-integration-test.yml @@ -0,0 +1,31 @@ +name: Integration test core + +on: + workflow_call: + inputs: + login_build_image: + required: true + type: string + +jobs: + + login-integration-test: + if: ${{ github.event_name == 'pull_request' }} + name: login-integration-test + runs-on: depot-ubuntu-22.04-8 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up pnpm caching + uses: actions/setup-node@v4 + with: + cache: 'pnpm' + - name: Run Integration Tests against the Login and a Mocked Zitadel API + uses: devcontainers/ci@v0.3 + environment: + LOGIN_TAG: ${{ inputs.login_build_image }} + with: + push: never + configFile: .devcontainer/login-integration/devcontainer.json + runCmd: echo "Successfully ran postStartCommand" +