forked from EESSI/software-layer
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (27 loc) · 924 Bytes
/
tests_readme.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
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Tests for consistency of README.md
on:
push:
paths:
- README.md
- init/eessi_defaults
pull_request:
paths:
- README.md
- init/eessi_defaults
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check out software-layer repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: verify if README.md is consistent with EESSI_VERSION from init/eessi_defaults
run: |
source init/eessi_defaults
grep "${EESSI_VERSION}" README.md
- name: verify if README.md is consistent with EESSI_CVMFS_REPO from init/eessi_defaults
run: |
source init/eessi_defaults
grep "${EESSI_CVMFS_REPO}" README.md