-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (33 loc) · 900 Bytes
/
test.yml
File metadata and controls
44 lines (33 loc) · 900 Bytes
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
name: test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- run: rustup update stable
- run: rustup default stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: 'test'
- uses: actions/cache@v4
with:
path: ~/.cache/typst
key: typst
- uses: FedericoCarboni/setup-ffmpeg@v3
- uses: taiki-e/install-action@v2
with:
tool: typst-cli
- run: |
echo "DEEPINFRA_KEY=${{ secrets.DEEPINFRA_KEY }}" > keys.env
echo "GOOGLE_KEY=${{ secrets.GOOGLE_KEY }}" >> keys.env
echo "OPENAI_KEY=${{ secrets.OPENAI_KEY }}" >> keys.env
- run: cargo test --all-features
- name: Cleanup before Post Run
run: rm keys.env