mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-03-11 17:45:30 +00:00
updated workflow
This commit is contained in:
parent
8f214967d8
commit
2ce5582194
1 changed files with 63 additions and 62 deletions
125
.github/workflows/test.yml
vendored
125
.github/workflows/test.yml
vendored
|
|
@ -1,67 +1,68 @@
|
||||||
name: Style and build test
|
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:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- run: pnpm i
|
- run: pnpm i
|
||||||
- run: npx tsc
|
- run: npx tsc
|
||||||
eslint:
|
eslint:
|
||||||
runs-on: ubuntu-latest
|
needs: tsc
|
||||||
steps:
|
runs-on: ubuntu-latest
|
||||||
- uses: actions/checkout@v2
|
steps:
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
- uses: pnpm/action-setup@v2
|
||||||
version: latest
|
with:
|
||||||
- name: Set up Node.js
|
version: latest
|
||||||
uses: actions/setup-node@v3
|
- name: Set up Node.js
|
||||||
with:
|
uses: actions/setup-node@v3
|
||||||
node-version: 22
|
with:
|
||||||
check-latest: true
|
node-version: 22
|
||||||
- run: pnpm i
|
check-latest: true
|
||||||
- run: pnpm run eslint
|
- run: pnpm i
|
||||||
prettier:
|
- run: pnpm run eslint
|
||||||
runs-on: ubuntu-latest
|
prettier:
|
||||||
steps:
|
needs: tsc
|
||||||
- uses: actions/checkout@v2
|
runs-on: ubuntu-latest
|
||||||
- uses: pnpm/action-setup@v2
|
steps:
|
||||||
with:
|
- uses: actions/checkout@v2
|
||||||
version: latest
|
- uses: pnpm/action-setup@v2
|
||||||
- name: Set up Node.js
|
with:
|
||||||
uses: actions/setup-node@v3
|
version: latest
|
||||||
with:
|
- name: Set up Node.js
|
||||||
node-version: 22
|
uses: actions/setup-node@v3
|
||||||
check-latest: true
|
with:
|
||||||
- run: pnpm i
|
node-version: 22
|
||||||
- run: pnpm run prettier
|
check-latest: true
|
||||||
test:
|
- run: pnpm i
|
||||||
needs: eslint
|
- run: pnpm run prettier
|
||||||
runs-on: ubuntu-latest
|
build-test:
|
||||||
steps:
|
needs: [eslint, prettier, tsc]
|
||||||
- uses: actions/checkout@v2
|
runs-on: ubuntu-latest
|
||||||
- uses: pnpm/action-setup@v2
|
steps:
|
||||||
with:
|
- uses: actions/checkout@v2
|
||||||
version: latest
|
- uses: pnpm/action-setup@v2
|
||||||
- name: Set up Node.js
|
with:
|
||||||
uses: actions/setup-node@v3
|
version: latest
|
||||||
with:
|
- name: Set up Node.js
|
||||||
node-version: 22
|
uses: actions/setup-node@v3
|
||||||
check-latest: true
|
with:
|
||||||
- run: pnpm i
|
node-version: 22
|
||||||
- run: pnpm run test
|
check-latest: true
|
||||||
|
- run: pnpm i
|
||||||
|
- run: pnpm run test
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue