Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed May 21, 2024
1 parent 0faf683 commit e79957f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 16 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/autofix-pnpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,34 @@ jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

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

- name: Setup Node.js
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: '18.x'
cache: pnpm
cache-dependency-path: 'pnpm-lock.yaml'
version: 8
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
working-directory: ./ee/tabby-ui
run: pnpm install

- name: Fix lint
Expand Down
31 changes: 23 additions & 8 deletions .github/workflows/test-pnpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,34 @@ jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

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

- name: Setup Node.js
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: '18.x'
cache: pnpm
cache-dependency-path: 'pnpm-lock.yaml'
version: 8
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
working-directory: ./ee/tabby-ui
run: pnpm install

- name: Lint
Expand Down

0 comments on commit e79957f

Please sign in to comment.