Skip to content
Draft
Changes from all 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
52 changes: 13 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 <https://github.com/alphagov/govuk-developer-docs/blob/main/.github/workflows/deploy.yml|Developer Docs deployment script> failed."
Loading