Skip to content

Commit

Permalink
feat: migrate to pnpm (TabbyML#2214)
Browse files Browse the repository at this point in the history
* fix(chat-panel): FileContext.content shall be required field.

* fix: tabby agent build

* migrate vscode series

* fix tabby-ui build

* migrate all build pipeline

* cleanup lint / fix

* update test

* simplify workflow

* update

* update

* update

* update

* fix

* fix tabby-ui build

* fix name

* update

* update

* update

* update

* migrate tabby-email

* update
  • Loading branch information
wsxiaoys authored May 21, 2024
1 parent 27557b5 commit e50f04b
Show file tree
Hide file tree
Showing 41 changed files with 21,586 additions and 21,854 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/autofix-pnpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: autofix.ci

on:
pull_request:
branches: ["main" ]
paths:
- '.github/workflows/autofix-pnpm.yml'
- 'clients/**'
- 'ee/tabby-ui/**'

permissions:
contents: read

concurrency:
group: ${{ github.workflow_ref }}-${{ github.head_ref || github.ref_name }}

# If this is enabled it will cancel current running and start latest
cancel-in-progress: true

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Fix lint
run: pnpm lint:fix

- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
1 change: 1 addition & 0 deletions .github/workflows/autofix-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'crates/**'
- 'ee/**'
- '!ee/tabby-ui/**'
- '!ee/tabby-email/**'

permissions:
contents: read
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/autofix-tabby-chat-panel.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/autofix-tabby-ui.yml

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/test-pnpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Test Pnpm

on:
pull_request:
branches: ["main" ]
paths:
- '.github/workflows/autofix-pnpm.yml'
- 'clients/**'
- 'ee/tabby-ui/**'

permissions:
contents: read

concurrency:
group: ${{ github.workflow_ref }}-${{ github.head_ref || github.ref_name }}

# If this is enabled it will cancel current running and start latest
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm lint

- name: Test
run: pnpm test

- name: Build
run: pnpm build
44 changes: 0 additions & 44 deletions .github/workflows/test-tabby-agent.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/test-tabby-chat-panel.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/test-tabby-ui.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/test-vscode.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
.vscode/
local/
__pycache__
.turbo
Loading

0 comments on commit e50f04b

Please sign in to comment.