-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (40 loc) · 1.06 KB
/
test_matrix.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
name: Build Components
on:
push:
branches:
- development
pull_request:
branches:
- development
jobs:
set-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
event: ["push", "pull_request"]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set Matrix and Build
id: set-matrix
uses: ./.github/actions/test_matrix
with:
event: ${{ matrix.event }}
use-matrix:
needs: set-matrix
runs-on: ubuntu-latest
strategy:
matrix: ${{fromJson(needs.set-matrix.outputs.matrix)}}
steps:
- name: Use matrix
run: |
matrix="${{ matrix }}"
paths="${{ matrix.paths }}"
docker_files="${{ matrix.docker_files }}"
working_dirs="${{ matrix.working_dirs }}"
image_names="${{ matrix.image_names }}"
echo "Component: $matrix"
echo "Paths: $paths"
echo "Dockerfile: $docker_files"
echo "Working Directory: $working_dirs"
echo "Image Name: $image_names"