Skip to content

Commit 120f9d0

Browse files
committed
[lint] Validate matrix.py
Add a new job to run matrix.py with a combination of owner/repo to make sure we don't raise. Signed-off-by: Manu Bretelle <chantr4@gmail.com>
1 parent 77645ea commit 120f9d0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,23 @@ jobs:
2020
uses: ludeeus/action-shellcheck@master
2121
env:
2222
SHELLCHECK_OPTS: --severity=warning --exclude=SC1091
23+
24+
validate_matrix:
25+
if: ${{ github.repository == 'kernel-patches/vmtest' }}
26+
name: Validate matrix.py
27+
runs-on: ubuntu-latest
28+
env:
29+
GITHUB_REPOSITORY_OWNER: ${{ matrix.owner }}
30+
GITHUB_REPOSITORY: ${{ matrix.repository }}
31+
GITHUB_OUTPUT: /dev/stdout
32+
strategy:
33+
matrix:
34+
owner: ['kernel-patches', 'foo']
35+
repository: ['bpf', 'vmtest', 'bar']
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v3
39+
- name: run script
40+
run: |
41+
python3 .github/scripts/matrix.py
42+

0 commit comments

Comments
 (0)