From 67e116a603adf5d7314f528f623c10b525c1bc19 Mon Sep 17 00:00:00 2001 From: ChrisBAshton Date: Thu, 10 Apr 2025 10:49:43 +0100 Subject: [PATCH] test it works --- .github/workflows/ci.yml | 52 ++++++++++------------------------------ 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6c35d045e..65dfa40b82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,45 +1,19 @@ -name: CI - +name: Always failing job on: - push: - branches: - - main - pull_request: workflow_dispatch: - inputs: - ref: - description: The branch, tag or SHA to checkout - default: main - type: string - schedule: - # Deploy hourly between 9am and 7pm on weekdays - - cron: "0 9-19 * * 1-5" jobs: - test-ruby: - name: Test Ruby - runs-on: ubuntu-latest + failed-run: + name: Failed run + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 - with: - ref: ${{ inputs.ref || github.ref }} - show-progress: false - - name: Clone publishing api - uses: actions/checkout@v4 - with: - repository: alphagov/publishing-api - ref: main - path: tmp/publishing-api - show-progress: false - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - uses: actions/setup-node@v4 + - name: Always failing + run: exit 1 + + - name: Notify failure + if: ${{ failure() }} + uses: alphagov/govuk-infrastructure/.github/actions/report-run-failure@main with: - cache: 'npm' - - run: yarn install --frozen-lockfile - - run: bundle exec rake - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GOVUK_CONTENT_SCHEMAS_PATH: tmp/publishing-api/content_schemas - SKIP_PROXY_PAGES: true + slack_webhook_url: ${{ secrets.GOVUK_SLACK_WEBHOOK_URL }} + channel: test-ci + message: "The failed."