kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
fix: turbo CI
rodzic
7b7ca8c435
commit
df70e0c840
|
@ -19,33 +19,23 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v3
|
||||
id: pnpm-install
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9.7.0
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup pnpm cache
|
||||
uses: actions/cache@v4
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
path: ${{ env.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
run: pnpm install --frozen-lockfile --strict-peer-dependencies
|
||||
|
||||
- name: Run build
|
||||
run: pnpm build
|
||||
|
||||
- name: Run test
|
||||
run: pnpm run test
|
||||
run: pnpm test
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"release:build": "run-s build",
|
||||
"release:version": "changeset version",
|
||||
"release:publish": "changeset publish",
|
||||
"pretest": "run-s build",
|
||||
"precommit": "lint-staged",
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"prepare": "husky"
|
||||
|
|
|
@ -12,13 +12,7 @@
|
|||
"dependsOn": ["^clean"]
|
||||
},
|
||||
"test": {
|
||||
"dependsOn": [
|
||||
"build",
|
||||
"test:format",
|
||||
"test:lint",
|
||||
"test:typecheck",
|
||||
"test:unit"
|
||||
]
|
||||
"dependsOn": ["test:format", "test:lint", "test:typecheck", "test:unit"]
|
||||
},
|
||||
"test:lint": {
|
||||
"dependsOn": ["^test:lint"],
|
||||
|
|
Ładowanie…
Reference in New Issue