Skip to content

Commit

Permalink
ci: improve web-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mortalYoung committed Jan 30, 2023
1 parent e7e6a9f commit fc01b49
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/web-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ on:
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: base
working-directory: taier-ui
env:
working-directory: ./taier-ui
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
Expand All @@ -34,12 +32,12 @@ jobs:
registry-url: "https://registry.npmjs.org/"

- name: Install pnpm
uses: pnpm/action-setup@v2.2.2
uses: pnpm/action-setup@v2
with:
version: 7,
version: 7
run_install: false

- name: Get pnpm store directory
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
Expand All @@ -54,15 +52,19 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
working-directory: ${{ env.working-directory }}
run: pwd && pnpm install

- name: Lint code
working-directory: ${{ env.working-directory }}
run: pnpm lint:es && pnpm lint:css

- name: Run build
working-directory: ${{ env.working-directory }}
run: pnpm build

- name: Run tests
working-directory: ${{ env.working-directory }}
run: pnpm test
env:
CI: true
Expand Down

0 comments on commit fc01b49

Please sign in to comment.