-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.37 KB
/
ci.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
name: ci
on: [push, pull_request]
jobs:
test-action:
name: Test Github Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: List prerequisites non-recursively
id: non-recursive-prerequisites
uses: ./
with:
working-directory: test
target: test1
- name: Check non-recursive prerequisites
run: |
test "${{ steps.non-recursive-prerequisites.outputs.prerequisites }}" = "prereq"
echo ${{ steps.non-recursive-prerequisites.outputs.hash }}
- name: List recursive prerequisites
id: recursive-prerequisites
uses: ./
with:
working-directory: test
target: test1
flags: --recursive
- name: Check recursive prerequisites
run: |
test "${{ steps.recursive-prerequisites.outputs.prerequisites }}" = "preprereq1 preprereq2"
echo ${{ steps.recursive-prerequisites.outputs.hash }}
- name: Hash directory prerequisite
id: hash-dir-prerequisite
uses: ./
with:
working-directory: test
target: test2
flags: --recursive
- name: Check directory prerequisite hash
run: |
test "${{ steps.hash-dir-prerequisite.outputs.prerequisites }}" = "dirprereq"
test "${{ steps.hash-dir-prerequisite.outputs.hash }}" = "c64a77871513eadd52ec0e278bfbac1db866b77f66ebe91725b378b8bf43e29c"