diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 44e3b6f116..7eb0a44672 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -59,6 +59,15 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Lint and Unit Test All JavaScript Code run: npm run devcontainer:lint-unit + - name: Fix Failures + if: failure() + run: | + echo "Reproduce this check locally:" + echo "npm run devcontainer:lint-unit" + echo "If you have pnpm installed, most linting errors can be fixed automatically:" + echo "pnpm turbo lint:fix" + echo "In other cases, you can open the dev container called \"Turbo Lint and Unit Tests\"." + echo "You will have the same environment as the pipeline check as well as some guidance on how to fix the errors." core: name: core diff --git a/.github/workflows/login-integration-test.yml b/.github/workflows/login-integration-test.yml index 5bc4ecd399..d54b7fe776 100644 --- a/.github/workflows/login-integration-test.yml +++ b/.github/workflows/login-integration-test.yml @@ -21,17 +21,18 @@ jobs: run: npm install -g @devcontainers/cli@0.80.0 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Pull Login Build Image - run: docker pull ${{ inputs.login_build_image }} - name: Run Integration Tests against the Login and a Mocked Zitadel API - run: npm run devcontainer:integration:login:up + run: npm run devcontainer:integration:login env: LOGIN_TAG: ${{ inputs.login_build_image }} DOCKER_BUILDKIT: 1 - BUILDKIT_PROGRESS: plain - # Add verbose logging - COMPOSE_LOG_LEVEL: DEBUG - DEVCONTAINER_LOG_LEVEL: trace + - name: Fix Failures + if: failure() + run: | + echo "Reproduce this check locally:" + echo "LOGIN_TAG=${{ inputs.login_build_image }} npm run devcontainer:integration:login" + echo "To fix the failures, open the dev container called \"Login Integration Tests\"." + echo "You will have the same environment as the pipeline check as well as some guidance on how to fix the errors." - name: Show Compose Status if: failure() run: docker compose --file .devcontainer/base/docker-compose.yaml --file .devcontainer/login-integration-ci/docker-compose.yaml ps