generated from DFE-Digital/govuk-rails-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (49 loc) · 1.64 KB
/
refresh_knapsack_manifest.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: "Refresh Knapsack manifest"
on:
schedule:
- cron: '0 8 * * 1' # Monday at 8am
workflow_dispatch:
push: # Temp for testing
jobs:
refresh_manifest:
name: Refresh Knapsack manifest
runs-on: ubuntu-20.04
env:
RAILS_ENV: test
DB_USERNAME: postgres
DB_PASSWORD: ""
DB_HOSTNAME: 127.0.0.1
DB_PORT: 5432
services:
postgres:
image: postgres:11.6-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: ./.github/actions/prepare-app-env
id: test
with:
prepare-test-database: "true"
prepare-assets: "true"
- name: Run tests
run: KNAPSACK_GENERATE_REPORT=true bundle exec rake knapsack:rspec
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
branch: refresh-knapsack-manifest
delete-branch: true
add-paths: knapsack_rspec_report.json
base: main
commit-message: |
Refresh Knapsack manifest
We run the Knapsack manifest generation in CI on a schedule; once complete
it raises this commit in a PR so that we can keep our test suite optimal.
title: Refresh Knapsack manifest
body: |
We run the Knapsack manifest generation in CI on a schedule; once complete it raises this commit in a PR so that we can keep our test suite optimal.