mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 09:33:10 -07:00
fix CI
This commit is contained in:
parent
b9725204e9
commit
d30abd5178
3 changed files with 17 additions and 30 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -31,13 +31,13 @@ jobs:
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ steps.versions.outputs.node-version }}
|
node-version: ${{ steps.versions.outputs.node-version }}
|
||||||
cache: 'yarn'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: pnpm install
|
||||||
|
|
||||||
- name: Run checks (format, lint, type check)
|
- name: Run checks (format, lint, type check)
|
||||||
run: yarn check
|
run: pnpm check
|
||||||
|
|
||||||
- name: Test build
|
- name: Test build
|
||||||
run: yarn build
|
run: pnpm build
|
||||||
|
|
|
||||||
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
|
|
@ -35,24 +35,23 @@ jobs:
|
||||||
echo "node-version=$NODE_VERSION" >> $GITHUB_OUTPUT
|
echo "node-version=$NODE_VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "📦 Using Node.js $NODE_VERSION from .nvmrc"
|
echo "📦 Using Node.js $NODE_VERSION from .nvmrc"
|
||||||
|
|
||||||
|
- name: Enable Corepack
|
||||||
|
run: corepack enable
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ steps.versions.outputs.node-version }}
|
node-version: ${{ steps.versions.outputs.node-version }}
|
||||||
|
cache: 'pnpm'
|
||||||
- name: Enable Corepack and prepare Yarn
|
|
||||||
run: |
|
|
||||||
corepack enable
|
|
||||||
corepack prepare yarn@4.9.4 --activate
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: pnpm install
|
||||||
|
|
||||||
- name: Run type check and linter
|
- name: Run type check and linter
|
||||||
run: yarn check
|
run: pnpm check
|
||||||
|
|
||||||
- name: Build Electron app
|
- name: Build Electron app
|
||||||
run: yarn package
|
run: pnpm package
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
22
.vscode/tasks.json
vendored
22
.vscode/tasks.json
vendored
|
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
"label": "Start Development Server",
|
"label": "Start Development Server",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "yarn dev",
|
"command": "pnpm dev",
|
||||||
"isBackground": true,
|
"isBackground": true,
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"group": "build"
|
"group": "build"
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
{
|
{
|
||||||
"label": "Build for Production",
|
"label": "Build for Production",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "yarn build",
|
"command": "pnpm build",
|
||||||
"group": "build",
|
"group": "build",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"echo": true,
|
"echo": true,
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
{
|
{
|
||||||
"label": "Lint and Fix",
|
"label": "Lint and Fix",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "yarn lint:fix",
|
"command": "pnpm fix",
|
||||||
"group": "test",
|
"group": "test",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"echo": true,
|
"echo": true,
|
||||||
|
|
@ -34,21 +34,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Type Check",
|
"label": "Check All (Lint + Format)",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "yarn compile",
|
"command": "pnpm check",
|
||||||
"group": "test",
|
|
||||||
"presentation": {
|
|
||||||
"echo": true,
|
|
||||||
"reveal": "always",
|
|
||||||
"focus": false,
|
|
||||||
"panel": "shared"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Check All (Lint + Type)",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "yarn check",
|
|
||||||
"group": "test",
|
"group": "test",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"echo": true,
|
"echo": true,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue