Skip to content

Commit

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

- name: Install pnpm
working-directory: taier-ui
uses: pnpm/action-setup@v2
with:
version: 7
run_install: false

- name: Get pnpm store directory
working-directory: taier-ui
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
working-directory: taier-ui
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
Expand All @@ -54,15 +53,19 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
working-directory: taier-ui
run: pnpm install

- name: Lint code
working-directory: taier-ui
run: pnpm lint:es && pnpm lint:css

- name: Run build
working-directory: taier-ui
run: pnpm build

- name: Run tests
working-directory: taier-ui
run: pnpm test
env:
CI: true
Expand Down

0 comments on commit b4939ff

Please sign in to comment.