Skip to content

Commit bcdb2c1

Browse files
committed
Add workflow to run all examples
1 parent e30304f commit bcdb2c1

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/examples.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Examples
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
env:
9+
DISPLAY: :0
10+
11+
steps:
12+
- uses: FedericoCarboni/setup-ffmpeg@v3
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
- name: Install GL/Canvas dependencies
16+
run: |
17+
sudo apt-get install -y \
18+
build-essential \
19+
libcairo2-dev \
20+
libgif-dev \
21+
libglew-dev\
22+
libglu1-mesa-dev\
23+
libjpeg-dev \
24+
libpango1.0-dev \
25+
librsvg2-dev \
26+
libxi-dev\
27+
pkg-config
28+
- if: runner.os == 'Linux'
29+
run: sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 &
30+
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v4
32+
with:
33+
repository: mifi/editly-assets
34+
path: examples/assets
35+
- uses: actions/setup-node@v4
36+
with:
37+
node-version: 22
38+
cache: "yarn"
39+
cache-dependency-path: ./package.json
40+
- run: yarn install
41+
- run: |
42+
cd examples
43+
./run-all-examples.sh
44+
- uses: actions/upload-artifact@v3
45+
with:
46+
name: video
47+
path: examples/*.{gif,mp4}

0 commit comments

Comments
 (0)