mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-12-14 22:10:49 +08:00
chore: improve workflow performance
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -28,24 +28,24 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Install Playwright
|
||||
run: pnpm run test:setup:ci
|
||||
|
||||
- name: Lint
|
||||
run: pnpm run lint
|
||||
|
||||
- name: Typecheck
|
||||
run: pnpm run typecheck && pnpm run dev:typecheck
|
||||
|
||||
- name: Test
|
||||
run: pnpm run test:coverage
|
||||
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
|
||||
- name: Publint
|
||||
run: pnpm run publint
|
||||
|
||||
- name: Install Playwright
|
||||
run: pnpm run test:setup
|
||||
|
||||
- name: Test
|
||||
run: pnpm run test:coverage
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/main' }}
|
||||
uses: codecov/codecov-action@v5
|
||||
|
||||
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -30,8 +30,14 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
|
||||
- name: Install Playwright
|
||||
run: pnpm run test:setup:ci
|
||||
run: pnpm run test:setup
|
||||
|
||||
- name: Test
|
||||
run: pnpm run test
|
||||
|
||||
- name: Extract release notes
|
||||
run: pnpm releaselog --format=notes ${{ github.ref_name }} > RELEASE_NOTES.md
|
||||
@@ -44,12 +50,6 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Test
|
||||
run: pnpm run test
|
||||
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
|
||||
- name: Get dist tag
|
||||
id: tag
|
||||
run: echo "tag=$(pnpm exec jiti scripts/dist-tag.ts '${{ github.ref_name }}')" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user