mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 00:12:05 +00:00
83 lines
2.3 KiB
YAML
83 lines
2.3 KiB
YAML
name: Style and build test
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
tsc:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: latest
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 24
|
|
check-latest: true
|
|
- run: pnpm i
|
|
- run: npx tsc
|
|
eslint:
|
|
needs: tsc
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: latest
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 24
|
|
check-latest: true
|
|
- run: pnpm i
|
|
- run: pnpm run eslint
|
|
prettier:
|
|
needs: tsc
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: latest
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 24
|
|
check-latest: true
|
|
- run: pnpm i
|
|
- run: pnpm run prettier
|
|
build-test-arm64:
|
|
needs: [eslint, prettier, tsc]
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: latest
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 24
|
|
check-latest: true
|
|
- run: pnpm i
|
|
- run: pnpm run test-arm64
|
|
build-test-x64:
|
|
needs: [eslint, prettier, tsc]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: latest
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 24
|
|
check-latest: true
|
|
- run: pnpm i
|
|
- run: pnpm run test-x64
|