@@ -25,37 +25,33 @@ jobs:
25
25
26
26
- name : " Honeycomb: Start first step"
27
27
run : |
28
- echo STEP_ID=0 >> $GITHUB_ENV
28
+ echo STEP_ID=setup-environment >> $GITHUB_ENV
29
29
echo STEP_START=$(date +%s) >> $GITHUB_ENV
30
30
31
31
- name : Checkout Source
32
32
uses : actions/checkout@v2
33
33
if : ${{ github.repository_owner == 'puppetlabs' }}
34
34
35
35
- name : Activate Ruby 2.7
36
- uses : actions /setup-ruby@v1
36
+ uses : ruby /setup-ruby@v1
37
37
if : ${{ github.repository_owner == 'puppetlabs' }}
38
38
with :
39
39
ruby-version : " 2.7"
40
+ bundler-cache : true
40
41
41
- - name : Cache gems
42
- uses : actions/cache@v2
42
+ - name : Print bundle environment
43
43
if : ${{ github.repository_owner == 'puppetlabs' }}
44
- with :
45
- path : vendor/gems
46
- key : ${{ runner.os }}-${{ github.event_name }}-${{ hashFiles('**/Gemfile') }}
47
- restore-keys : |
48
- ${{ runner.os }}-${{ github.event_name }}-
49
- ${{ runner.os }}-
44
+ run : |
45
+ echo ::group::bundler environment
46
+ buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
47
+ echo ::endgroup::
50
48
51
- - name : Install gems
49
+ - name : " Honeycomb: Record Setup Environment time "
52
50
if : ${{ github.repository_owner == 'puppetlabs' }}
53
51
run : |
54
- buildevents cmd $TRACE_ID $STEP_ID 'bundle config path vendor/gems' -- bundle config path vendor/gems
55
- buildevents cmd $TRACE_ID $STEP_ID 'bundle config jobs 8' -- bundle config jobs 8
56
- buildevents cmd $TRACE_ID $STEP_ID 'bundle config retry 3' -- bundle config retry 3
57
- buildevents cmd $TRACE_ID $STEP_ID 'bundle install' -- bundle install
58
- buildevents cmd $TRACE_ID $STEP_ID 'bundle clean' -- bundle clean
52
+ buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment'
53
+ echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
54
+ echo STEP_START=$(date +%s) >> $GITHUB_ENV
59
55
60
56
- name : Setup Acceptance Test Matrix
61
57
id : get-matrix
67
63
echo "::set-output name=matrix::{}"
68
64
fi
69
65
70
- - name : " Honeycomb: Record setup time"
66
+ - name : " Honeycomb: Record Setup Test Matrix time"
71
67
if : ${{ always() }}
72
68
run : |
73
69
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Test Matrix'
@@ -106,42 +102,22 @@ jobs:
106
102
uses : actions/checkout@v2
107
103
108
104
- name : Activate Ruby 2.7
109
- uses : actions /setup-ruby@v1
105
+ uses : ruby /setup-ruby@v1
110
106
with :
111
107
ruby-version : " 2.7"
108
+ bundler-cache : true
112
109
113
- - name : Cache gems
114
- uses : actions/cache@v2
115
- with :
116
- path : vendor/gems
117
- key : ${{ runner.os }}-${{ github.event_name }}-${{ hashFiles('**/Gemfile') }}
118
- restore-keys : |
119
- ${{ runner.os }}-${{ github.event_name }}-
120
- ${{ runner.os }}-
121
-
122
- - name : " Honeycomb: Record cache setup time"
123
- if : ${{ always() }}
124
- run : |
125
- buildevents step $TRACE_ID $STEP_ID $STEP_START 'Cache retrieval'
126
- echo STEP_ID=${{ matrix.platform }}-${{ matrix.collection }}-2 >> $GITHUB_ENV
127
- echo STEP_START=$(date +%s) >> $GITHUB_ENV
128
-
129
- - name : Bundler Setup
110
+ - name : Print bundle environment
130
111
run : |
131
- buildevents cmd $TRACE_ID $STEP_ID 'bundle config path vendor/gems' -- bundle config path vendor/gems
132
- buildevents cmd $TRACE_ID $STEP_ID 'bundle config jobs 8' -- bundle config jobs 8
133
- buildevents cmd $TRACE_ID $STEP_ID 'bundle config retry 3' -- bundle config retry 3
134
- buildevents cmd $TRACE_ID $STEP_ID 'bundle install' -- bundle install
135
- buildevents cmd $TRACE_ID $STEP_ID 'bundle clean' -- bundle clean
136
112
echo ::group::bundler environment
137
113
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
138
114
echo ::endgroup::
139
115
140
- - name : " Honeycomb: Record Bundler Setup time"
116
+ - name : " Honeycomb: Record Setup Environment time"
141
117
if : ${{ always() }}
142
118
run : |
143
- buildevents step $TRACE_ID $STEP_ID $STEP_START 'Bundler Setup'
144
- echo STEP_ID=${{ matrix.platform }}-${{ matrix.collection }}-3 >> $GITHUB_ENV
119
+ buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment '
120
+ echo STEP_ID=${{ matrix.platform }}-${{ matrix.collection }}-2 >> $GITHUB_ENV
145
121
echo STEP_START=$(date +%s) >> $GITHUB_ENV
146
122
147
123
- name : Provision test environment
@@ -168,7 +144,7 @@ jobs:
168
144
run : |
169
145
echo ::group::honeycomb step
170
146
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Deploy test system'
171
- echo STEP_ID=${{ matrix.platform }}-${{ matrix.collection }}-4 >> $GITHUB_ENV
147
+ echo STEP_ID=${{ matrix.platform }}-${{ matrix.collection }}-3 >> $GITHUB_ENV
172
148
echo STEP_START=$(date +%s) >> $GITHUB_ENV
173
149
echo ::endgroup::
174
150
@@ -180,11 +156,12 @@ jobs:
180
156
if : ${{ always() }}
181
157
run : |
182
158
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Run acceptance tests'
183
- echo STEP_ID=${{ matrix.platform }}-${{ matrix.collection }}-5 >> $GITHUB_ENV
159
+ echo STEP_ID=${{ matrix.platform }}-${{ matrix.collection }}-4 >> $GITHUB_ENV
184
160
echo STEP_START=$(date +%s) >> $GITHUB_ENV
185
161
186
162
- name : Remove test environment
187
163
if : ${{ always() }}
164
+ continue-on-error : true
188
165
run : |
189
166
if [ -f inventory.yaml ]; then
190
167
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:tear_down' -- bundle exec rake 'litmus:tear_down'
0 commit comments