diff --git a/.github/workflows/ci.yml b/.github/workflows/setup.yml similarity index 79% rename from .github/workflows/ci.yml rename to .github/workflows/setup.yml index 49813ae..211c3e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/setup.yml @@ -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 @@ -35,7 +34,3 @@ jobs: id: setup-typst with: version: 'v0.10.0' - - - run: | - just gen - just test diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..86de4c3 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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