-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (38 loc) · 1.09 KB
/
ci.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
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
env:
DENO_DIR: deno_dependency_cache
DENO_LOCKFILE: ${{ github.workspace }}/deno.lock
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Repo
uses: actions/checkout@v3
- name: Setup FFMPEG
uses: FedericoCarboni/setup-ffmpeg@v3
id: setup-ffmpeg
with:
ffmpeg-version: 7.0.1
- name: Setup Deno
uses: denoland/setup-deno@v2
- name: Cache Deno dependencies
uses: actions/cache@v4
with:
path: ${{ env.DENO_DIR }}
key: ${{ hashFiles(env.DENO_LOCKFILE) }}
# SSH into github machine for quick iterative debugging (note that this sort of sucks if you want to retrieve a file via ssh)
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Test
run: deno task test
- uses: actions/upload-artifact@v4
if: always()
with:
path: "./test/artifacts/render image with zero duration/preview.jpg"