updated workflow

This commit is contained in:
stratumadev 2025-10-01 14:21:11 +02:00
parent 8f214967d8
commit 2ce5582194

View file

@ -2,9 +2,9 @@ name: Style and build test
on: on:
push: push:
branches: [ master ] branches: [master]
pull_request: pull_request:
branches: [ master ] branches: [master]
jobs: jobs:
tsc: tsc:
@ -22,6 +22,7 @@ jobs:
- run: pnpm i - run: pnpm i
- run: npx tsc - run: npx tsc
eslint: eslint:
needs: tsc
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -36,6 +37,7 @@ jobs:
- run: pnpm i - run: pnpm i
- run: pnpm run eslint - run: pnpm run eslint
prettier: prettier:
needs: tsc
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -49,8 +51,8 @@ jobs:
check-latest: true check-latest: true
- run: pnpm i - run: pnpm i
- run: pnpm run prettier - run: pnpm run prettier
test: build-test:
needs: eslint needs: [eslint, prettier, tsc]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -64,4 +66,3 @@ jobs:
check-latest: true check-latest: true
- run: pnpm i - run: pnpm i
- run: pnpm run test - run: pnpm run test