-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.06 KB
/
cms-validate.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
42
43
44
---
# ------------------------------------------------------------------------------
#
name: CMS validate course
on:
workflow_dispatch:
inputs:
alias:
description: Contentful alias to target (master, staging, test)
type: string
default: master
jobs:
test:
name: Content 2i
runs-on: ubuntu-latest
environment: test
env:
RAILS_ENV: test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
CONTENTFUL_ENVIRONMENT: ${{ inputs.alias }}
VERBOSE: 'on'
steps:
-
name: Checkout Code
uses: actions/checkout@v4
-
name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.4
bundler-cache: true
-
name: Install Rubygems
run: bundle install --jobs 20 --retry 3
-
name: Validate draft (pre-release)
env:
CONTENTFUL_PREVIEW: 'on'
run: bundle exec rails eyfs:cms:validate
-
name: Validate published (post-release)
run: bundle exec rails eyfs:cms:validate