chore(actions): run typechecks first, then tests

This commit is contained in:
Erica Marigold 2024-11-21 18:55:13 +00:00
parent f620acee55
commit c5347e41c0
Signed by: DevComp
GPG key ID: 429EF1C337871656

View file

@ -24,31 +24,8 @@ jobs:
- name: Check formatting - name: Check formatting
run: lune run fmt -- --check run: lune run fmt -- --check
test:
needs: ["fmt"]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install tooling
uses: CompeyDev/setup-rokit@v0.1.2
with:
cache: true
- name: Install pesde
uses: ./.github/workflows/pesde.yml
with:
pesde-token: ${{ secrets.PESDE_TOKEN }}
- name: Install dependencies
run: pesde install
- name: Run tests
run: lune run tests
typecheck: typecheck:
needs: ["test"] needs: ["fmt"]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -69,3 +46,26 @@ jobs:
- name: Typecheck - name: Typecheck
run: lune run typecheck run: lune run typecheck
test:
needs: ["typecheck"]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install tooling
uses: CompeyDev/setup-rokit@v0.1.2
with:
cache: true
- name: Install pesde
uses: ./.github/workflows/pesde.yml
with:
pesde-token: ${{ secrets.PESDE_TOKEN }}
- name: Install dependencies
run: pesde install
- name: Run tests
run: lune run tests