3030 continue-on-error : true
3131 name : Check flake8 rules
3232 steps :
33- - uses : actions/checkout@v3
33+ - uses : actions/checkout@v4
3434 - uses : actions/setup-python@v4
3535 with :
3636 python-version : ' 3.8'
4343 continue-on-error : true
4444 name : Check isort rules
4545 steps :
46- - uses : actions/checkout@v3
46+ - uses : actions/checkout@v4
4747 - uses : actions/setup-python@v4
4848 with :
4949 python-version : ' 3.8'
@@ -56,17 +56,20 @@ jobs:
5656 continue-on-error : true
5757 strategy :
5858 matrix :
59- version : [22.04, 20.04, docker]
59+ version : ['24.04', ' 22.04', ' 20.04' , docker]
6060 include :
61- - version : 22.04
61+ - version : ' 24.04'
62+ distro : noble
63+ - version : ' 22.04'
6264 distro : jammy
63- - version : 20.04
65+ - version : ' 20.04'
6466 distro : focal
6567 - version : docker
6668 distro : docker image
69+
6770 name : Build ${{ matrix.distro }}
6871 steps :
69- - uses : actions/checkout@v3
72+ - uses : actions/checkout@v4
7073 - name : Prepare debian versioning
7174 if : ${{ matrix.version != 'docker' }}
7275 run : |
8184
8285 - name : Archive package artifact
8386 if : ${{ matrix.version != 'docker' }}
84- uses : actions/upload-artifact@v3
87+ uses : actions/upload-artifact@v4
8588 with :
8689 name : debian-${{ matrix.distro }}
8790 path : |
@@ -99,37 +102,40 @@ jobs:
99102
100103 - name : Upload image
101104 if : ${{ matrix.version == 'docker' }}
102- uses : ishworkh/docker -image-artifact-upload@v1
105+ uses : ishworkh/container -image-artifact-upload@v2.0.0
103106 with :
104107 image : " convertit:latest"
105108
106109 e2e :
107- continue-on-error : true
108110 strategy :
109111 matrix :
110- distro : [ jammy, focal, docker ]
112+ distro : [ noble, jammy, focal, docker ]
111113 include :
114+ - distro : noble
115+ version : ' 24.04'
116+
112117 - distro : jammy
113- version : 22.04
118+ version : ' 22.04'
114119
115120 - distro : focal
116- version : 20.04
121+ version : ' 20.04'
117122
118123 - distro : docker
119124 version : latest
120125
121126 name : Test ${{ matrix.distro }}
122127 runs-on : ubuntu-${{ matrix.version }}
123128 needs : [ build ]
129+ continue-on-error : true
124130 steps :
125- - uses : actions/download-artifact@v3
131+ - uses : actions/download-artifact@v4
126132 if : ${{ matrix.distro != 'docker' }}
127133 with :
128134 name : debian-${{ matrix.distro }}
129135
130136 - name : Download image
131137 if : ${{ matrix.distro == 'docker' }}
132- uses : ishworkh/docker -image-artifact-download@v1
138+ uses : ishworkh/container -image-artifact-download@v2.0.0
133139 with :
134140 image : " convertit:latest"
135141
@@ -146,7 +152,7 @@ jobs:
146152
147153 - name : Test ODT / PDF conversion
148154 run : |
149- wget -O myfile.pdf "http://localhost:6543/?url=https://file-examples.com/storage/febf69dcf3656dfd992b0fa /2017/10/file-sample_100kB.odt&from=application/vnd.oasis.opendocument.text"
155+ wget -O myfile.pdf "http://localhost:6543/?url=https://file-examples.com/wp-content/storage /2017/10/file-sample_100kB.odt&from=application/vnd.oasis.opendocument.text"
150156
151157 if file -b --mime-type ./myfile.pdf |grep -q 'application/pdf'; then
152158 echo "File is PDF";
@@ -159,7 +165,7 @@ jobs:
159165
160166 - name : Test ODT / DOC conversion
161167 run : |
162- wget -O myfile.doc "http://localhost:6543/?url=https://file-examples.com/storage/febf69dcf3656dfd992b0fa /2017/10/file-sample_100kB.odt&from=application/vnd.oasis.opendocument.text&to=application/msword"
168+ wget -O myfile.doc "http://localhost:6543/?url=https://file-examples.com/storage/fef4e75e176737761a179bf /2017/10/file-sample_100kB.odt&from=application/vnd.oasis.opendocument.text&to=application/msword"
163169
164170 if file -b --mime-type ./myfile.doc |grep -q 'application/msword'; then
165171 echo "File is DOC";
@@ -195,25 +201,32 @@ jobs:
195201 file -b -f ./myfile.pdf;
196202 exit 1;
197203 fi
204+
198205 deploy :
199206 name : Publish (on release only)
200207 runs-on : ubuntu-latest
201208 needs : [ flake8, isort, e2e ]
202209 if : ${{ github.event_name == 'release' && github.event.action == 'created' }}
203210 steps :
204- - uses : actions/checkout@v3
211+ - uses : actions/checkout@v4
212+
213+ - name : Download 24.04 debian artifact
214+ uses : actions/download-artifact@v4
215+ with :
216+ name : debian-noble
217+
205218 - name : Download 22.04 debian artifact
206- uses : actions/download-artifact@v3
219+ uses : actions/download-artifact@v4
207220 with :
208221 name : debian-jammy
209222
210223 - name : Download 20.04 debian artifact
211- uses : actions/download-artifact@v3
224+ uses : actions/download-artifact@v4
212225 with :
213226 name : debian-focal
214227
215228 - name : Download docker image
216- uses : ishworkh/docker -image-artifact-download@v1
229+ uses : ishworkh/container -image-artifact-download@v2.0.0
217230 with :
218231 image : " convertit:latest"
219232
0 commit comments