ci: build before test, only test if present

This commit is contained in:
fryorcraken.eth 2022-08-08 12:50:34 +10:00
parent 9aa3962145
commit a7f422956c
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 6 additions and 2 deletions

View File

@ -40,6 +40,10 @@ jobs:
run: pnpm install --frozen-lockfile
working-directory: ${{ matrix.example }}
- name: test
run: pnpm run test
- name: build
run: pnpm run build
working-directory: ${{ matrix.example }}
- name: test
run: pnpm --if-present test
working-directory: ${{ matrix.example }}