-
Notifications
You must be signed in to change notification settings - Fork 28
96 lines (91 loc) · 2.52 KB
/
integration.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
95
96
name: 🚧 Integration
on:
pull_request:
push:
branches:
- "main"
jobs:
test:
name: 🧪 Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: pnpm/[email protected]
name: Install pnpm
with:
version: 8
- uses: actions/setup-node@main
with:
cache: pnpm
- run: pnpm install --frozen-lockfile --prefer-offline
- run: pnpm run test
format:
name: 💅 Check format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: pnpm/[email protected]
name: Install pnpm
with:
version: 8
- uses: actions/setup-node@main
with:
cache: pnpm
- run: pnpm install --frozen-lockfile --prefer-offline
- run: pnpm prettier --check .
generateVideos:
needs:
- test
- format
runs-on: ubuntu-latest
strategy:
matrix:
composition:
- name: "Sponsor"
props:
companyName: "Foo"
- name: "Talk"
props:
title: "Example of a Title"
speakersNames: "John Doe"
- name: "Meetup"
props:
title: "#76 - LyonJS de la rentrée 🦁"
date: "28 septembre 2022"
name: 📽 Generating ${{matrix.composition.name}}
steps:
- run: sudo apt update
- run: sudo apt install ffmpeg
- uses: actions/checkout@main
- uses: pnpm/[email protected]
name: Install pnpm
with:
version: 8
- uses: actions/setup-node@main
with:
cache: pnpm
- run: pnpm install --frozen-lockfile --prefer-offline
- run: echo $WORKFLOW_INPUT > input-props.json
env:
WORKFLOW_INPUT: ${{ toJson(matrix.event.inputs) }}
- run: pnpm remotion render remotion/index.tsx ${{matrix.composition.name}} out/${{matrix.composition.name}}.mp4 --props="./input-props.json"
- uses: actions/upload-artifact@v4
with:
name: video-${{matrix.composition.name}}
path: out
if-no-files-found: "error"
compression-level: 0
nextjs:
name: ⚛️ NextJS application
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: pnpm/[email protected]
name: Install pnpm
with:
version: 8
- uses: actions/setup-node@main
with:
cache: pnpm
- run: pnpm install --frozen-lockfile --prefer-offline
- run: pnpm build