-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 833 Bytes
/
test.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
name: Test
on:
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
outputs:
files: ${{ steps.changed-files.outputs.files }}
steps:
- name: Checkout
uses: actions/[email protected]
- name: Run the action
id: changed-files
uses: ./
- name: Print steps context output
run: |
echo ${{ steps.changed-files.outputs.files }}
echo ${{ steps.changed-files.outputs.sha }}
echo ${{ steps.changed-files.outputs.msg }}
test-matrix:
runs-on: ubuntu-latest
needs: test
strategy:
fail-fast: false
matrix:
file: ${{ fromJSON(needs.test.outputs.files) }}
steps:
- name: Echo file from matrix
run:
echo ${{ matrix.file }}