Skip to content

Commit 7a3a54d

Browse files
committed
fix check for eb_hooks.py being up-to-date
1 parent 2240702 commit 7a3a54d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/test-eb-hooks.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ on:
66
workflow_dispatch:
77
permissions:
88
contents: read # to fetch code (actions/checkout)
9-
env:
10-
EESSI_VERSION: '2023.06'
119
jobs:
1210
check_eb_hooks:
1311
runs-on: ubuntu-24.04
12+
strategy:
13+
matrix:
14+
EESSI_VERSION:
15+
- '2023.06'
16+
- '2025.06'
1417
steps:
1518
- name: Check out software-layer repository
1619
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -50,7 +53,10 @@ jobs:
5053
git show origin/${{ github.base_ref }}:$FILE > "$TEMP_FILE"
5154
fi
5255
56+
# replace <EESSI_VERSION> placeholder (as is also done in install_scripts.sh)
57+
sed -i "s/<EESSI_VERSION>/${{matrix.EESSI_VERSION}}/g" "${TEMP_FILE}"
58+
5359
# Compare the hooks to what is shipped in the repository
54-
source /cvmfs/software.eessi.io/versions/${EESSI_VERSION}/init/bash
60+
source /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}}/init/bash
5561
module load EESSI-extend
5662
diff "$TEMP_FILE" "$EASYBUILD_HOOKS"

0 commit comments

Comments
 (0)