Skip to content

Commit

Permalink
simplify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed May 21, 2024
1 parent 863c926 commit b190cf1
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 196 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
pull_request:
branches: ["main" ]
paths:
- '.github/workflows/autofix-tabby-ui.yml'
- '.github/workflows/autofix-pnpm.yml'
- 'clients/**'
- 'ee/tabby-ui/**'

permissions:
Expand All @@ -28,19 +29,15 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: yarn
cache-dependency-path: 'yarn.lock'
cache: pnpm
cache-dependency-path: 'pnpm-lock.yaml'

- name: Install dependencies
working-directory: ./ee/tabby-ui
run: yarn install
run: pnpm install

- name: Lint
- name: Fix lint
working-directory: ./ee/tabby-ui
run: yarn lint:fix

- name: Format
working-directory: ./ee/tabby-ui
run: yarn format:write
run: pnpm lint:fix

- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
42 changes: 0 additions & 42 deletions .github/workflows/autofix-tabby-chat-panel.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,41 +1,49 @@
name: Test Tabby UI
name: autofix.ci

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

permissions:
contents: read

concurrency:
group: ${{ github.workflow_ref }}-${{ github.head_ref || github.ref_name }}
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:
autofix:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: yarn
cache-dependency-path: 'yarn.lock'
cache: pnpm
cache-dependency-path: 'pnpm-lock.yaml'

- name: Install dependencies
working-directory: ./ee/tabby-ui
run: yarn install
- name: Format
working-directory: ./ee/tabby-ui
run: yarn format:check
run: pnpm install

- name: Lint
working-directory: ./ee/tabby-ui
run: yarn lint
- name: Test build
run: pnpm lint

- name: Test
working-directory: ./ee/tabby-ui
run: pnpm test

- name: Build
working-directory: ./ee/tabby-ui
run: yarn 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.

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

This file was deleted.

4 changes: 2 additions & 2 deletions ee/tabby-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"build": "next build",
"prebuild": "pnpm codegen",
"start": "next start",
"lint": "next lint",
"lint:fix": "next lint --fix",
"lint": "next lint && pnpm format:check",
"lint:fix": "next lint --fix && pnpm format:write",
"preview": "next build && next start",
"type-check": "tsc --noEmit",
"format:write": "prettier --write \"{app,lib,components}/**/*.{ts,tsx,mdx}\" --cache",
Expand Down

0 comments on commit b190cf1

Please sign in to comment.