-
Notifications
You must be signed in to change notification settings - Fork 79
57 lines (50 loc) · 1.54 KB
/
test-windows.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
name: Tes in Windows
on:
workflow_call:
inputs:
input-artifact-name:
description: Name of artifact as which Windows executable is uploaded
required: true
type: string
output-artifact-name:
description: Name of artifact as which Windows test results to be uploaded
required: true
type: string
jobs:
test-windows:
name: Test Windows
runs-on: windows-latest
strategy:
matrix:
case:
- apng
- gif
- png
- webm
steps:
- uses: actions/checkout@v3
- name: Install giffki
if: ${{ matrix.case == 'gif' }}
shell: bash
run: cargo install gifski
- name: Install ffmpeg
if: ${{ (matrix.case == 'apng') || (matrix.case == 'webm') }}
uses: FedericoCarboni/setup-ffmpeg@v2
- name: Download artifact
uses: actions/[email protected]
with:
name: ${{ inputs.input-artifact-name }}
path: bin
- name: Run tests
shell: bash
run: |
bash -c "\
find test-files -type f \( -iname \*.json -o -iname \*.lottie -o -iname \*.tgs \) | while IFS=$'\n' read -r FILE; do \
echo Converting \${FILE}... && sh ./bin/lottie_to_${{ matrix.case }}.sh \$FILE && echo Done.; \
done \
"
- name: Upload test results as artifacts
uses: actions/[email protected]
with:
name: ${{inputs.output-artifact-name }}.${{ matrix.case }}
path: test-files