-
Notifications
You must be signed in to change notification settings - Fork 1
94 lines (85 loc) · 2.33 KB
/
tests.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: General tests
'on':
- pull_request
- push
jobs:
call_test:
# This test fails completely
# https://github.com/orgs/community/discussions/8945
# https://github.com/actions/runner/issues/2577
uses: ./.github/workflows/concurrency_call.yml
with:
build-type: name-one
another_call:
# This test fails completely
# https://github.com/orgs/community/discussions/8945
# https://github.com/actions/runner/issues/2577
uses: ./.github/workflows/concurrency_call.yml
with:
build-type: name-two
composite_test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Build
uses: ./.github/actions/test_composite
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Print content of github context
run: |
cat << 'EOF'
${{ toJSON(github) }}
EOF
cat << 'EOF'
${{ toJSON(runner) }}
EOF
cat << 'EOF'
${{ toJSON(env) }}
EOF
cat << 'EOF'
${{ toJSON(job) }}
EOF
env | sort
echo GITHUB_ENV
cat $GITHUB_ENV
echo 'GLOBALLY_SET_ENV=abrakadabra' >> $GITHUB_ENV
- name: Check GITHUB_ENV
run: |
env | sort
echo $GLOBALLY_SET_ENV
cat << 'EOF'
${{ toJSON(env) }}
EOF
- name: Fetch base branch
id: base_branch
run: |
git fetch --progress --depth=1 origin ${{ github.base_ref }}
- name: And finally, diff
run: git diff --name-only origin/master
CreateArtifact:
runs-on: ubuntu-latest
name: CreateArtifact-${{matrix.id}}
strategy:
matrix:
id: [1, 2]
steps:
- run: |
mkdir -p artifact-${{ matrix.id }}
echo '{"id": ${{matrix.id}}}' > \
artifact-${{ matrix.id }}/artifact-${{ matrix.id }}.json
- uses: actions/upload-artifact@v3
with:
name: artifact-${{ matrix.id }}
path: artifact-${{ matrix.id }}/artifact-${{ matrix.id }}.json
DownloadArtifacts:
needs: [CreateArtifact]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
path: reports-dir
- run: |
ls -lRa reports-dir