generated from ghga-de/microservice-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.88 KB
/
check_readmes.yaml
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
59
60
61
62
63
64
65
name: Check if the README files are up to date
on: push
jobs:
get-changed-services:
uses: ./.github/workflows/get_affected_services.yaml
check-repo-readme:
name: Check repository README file
runs-on: ubuntu-latest
steps:
- name: Checkout repository
id: checkout
uses: actions/checkout@v4
- name: Set up Python 3.12
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Update pip and install dependencies
id: install-dependencies
run: python -m pip install --upgrade pip && pip install --no-deps -r ./lock/requirements-dev.txt
- name: Check top level README
id: check-main-readme
run: |
python3 scripts/update_readme_monorepo.py --check
check-service-readme:
name: Check README file for ${{matrix.service}}
needs: get-changed-services
if: ${{ needs.get-changed-services.outputs.services != '' }}
runs-on: ubuntu-latest
strategy:
matrix:
service: ${{ fromJson(needs.get-changed-services.outputs.services) }}
fail-fast: false
env:
IFRS_CONFIG_YAML: ./services/ifrs/dev_config.yaml
IRS_CONFIG_YAML: ./services/irs/dev_config.yaml
PCS_CONFIG_YAML: ./services/pcs/dev_config.yaml
steps:
- name: Checkout repository
id: checkout
uses: actions/checkout@v4
- name: Set up Python 3.12
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Update pip and install dependencies
id: install-dependencies
run: python -m pip install --upgrade pip && pip install --no-deps -r ./lock/requirements-dev.txt
- name: Check service level READMEs
id: check-service-readmes
run: |
python3 scripts/update_readme_services.py --check --service ${{matrix.service}}