-
Notifications
You must be signed in to change notification settings - Fork 31
41 lines (39 loc) · 998 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
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
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
- run: bundle exec rake
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVUK_CONTENT_SCHEMAS_PATH: tmp/publishing-api/content_schemas
SKIP_PROXY_PAGES: true