Skip to content

Commit

Permalink
Feat: make setup reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
tingerrr committed Jan 19, 2024
1 parent 4091ce0 commit 8a9015b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml → .github/workflows/setup.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: Tests
on: [push, pull_request]
name: Setup
on:
workflow_call:

jobs:
ci:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: imagemagick cargo parallel
packages: imagemagick cargo
version: 1.0

- name: Install nushell from crates.io
Expand All @@ -35,7 +34,3 @@ jobs:
id: setup-typst
with:
version: 'v0.10.0'

- run: |
just gen
just test
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Tests
on:
push:
branches: [ master" ]
pull_request:
branches: [ master" ]

jobs:
tests:
- uses: tingerrr/typst-test/.github/workflows/setup.yml@master
- run: |
just gen
just test

0 comments on commit 8a9015b

Please sign in to comment.