mirror of
https://github.com/0x5eal/semver-luau.git
synced 2024-12-12 15:00:36 +00:00
chore(actions): run typechecks first, then tests
This commit is contained in:
parent
e4eb01664f
commit
0127e68e96
1 changed files with 24 additions and 24 deletions
48
.github/workflows/ci.yml
vendored
48
.github/workflows/ci.yml
vendored
|
@ -24,31 +24,8 @@ jobs:
|
|||
- name: Check formatting
|
||||
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:
|
||||
needs: ["test"]
|
||||
needs: ["fmt"]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
@ -69,3 +46,26 @@ jobs:
|
|||
|
||||
- name: 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
|
||||
|
|
Loading…
Reference in a new issue