@@ -44,11 +44,12 @@ jobs:
44
44
needs : modifiedparts
45
45
name : Build the charm
46
46
runs-on : ubuntu-latest
47
- if : ${{ needs.modifiedparts.output .parts != '[]' }}
47
+ if : ${{ needs.modifiedparts.outputs .parts != '[]' }}
48
48
strategy :
49
49
matrix :
50
50
part : ${{ fromJson(needs.modifiedparts.outputs.parts) }}
51
51
steps :
52
+
52
53
- name : Checkout
53
54
uses : actions/checkout@v4
54
55
@@ -74,26 +75,26 @@ jobs:
74
75
tox -c ${{ matrix.part }} -e build
75
76
76
77
- name : Upload built charm
77
- uses : actions/upload-artifact@v3
78
+ uses : actions/upload-artifact@v4
78
79
with :
79
- name : charms
80
+ name : charm-${{ matrix.part }}
80
81
path : " ./${{ matrix.part }}/*.charm"
81
82
82
83
functional-test :
83
84
needs :
84
85
- modifiedparts
85
86
- build
86
87
name : Functional tests
87
- runs-on : self-hosted
88
+ runs-on : [ self-hosted, linux, amd64, X64, large, noble]
88
89
if : ${{ needs.modifiedparts.output.parts != '[]' }}
89
90
strategy :
90
91
matrix :
91
92
part : ${{ fromJson(needs.modifiedparts.outputs.parts) }}
92
93
steps :
93
94
- name : Download charm
94
- uses : actions/download-artifact@v3
95
+ uses : actions/download-artifact@v4
95
96
with :
96
- name : charms
97
+ name : charm-${{ matrix.part }}
97
98
path : ~/artifacts/
98
99
99
100
- name : Checkout code
@@ -114,7 +115,7 @@ jobs:
114
115
run : |
115
116
sudo apt -y install tox
116
117
if [ ! -d "$HOME/.local/share/juju" ]; then
117
- sudo snap install juju --channel=3.4 /stable
118
+ sudo snap install juju --channel=3.6 /stable
118
119
mkdir -p ~/.local/share/juju
119
120
juju bootstrap localhost localhost
120
121
fi
@@ -142,12 +143,16 @@ jobs:
142
143
done
143
144
144
145
- name : Upload artifacts on failure
145
- uses : actions/upload-artifact@v3
146
+ uses : actions/upload-artifact@v4
146
147
with :
147
- name : crashdumps
148
+ name : crashdumps-${{ matrix.part }}
148
149
path : " ./crashdumps/*"
149
150
if : failure()
150
151
152
+ - name : Setup tmate session
153
+ if : ${{ failure() && runner.debug }}
154
+ uses : canonical/action-tmate@main
155
+
151
156
- name : Tear down models
152
157
if : always()
153
158
run : |
0 commit comments