Skip to content

Commit

Permalink
[Bugfix] Fix CI (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmo8 authored Jul 10, 2024
1 parent c746bbc commit 1d4e874
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,36 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20]

# pseudo-matrix for convenience, NEVER use more than a single combination
node: [20]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: install pnpm
shell: bash
run: |
PNPM_VER=9.5.0
echo installing pnpm version $PNPM_VER
npm i -g pnpm@$PNPM_VER
working-directory: paimon-web-ui

- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: install
run: pnpm install --frozen-lockfile --prefer-offline --ignore-scripts
working-directory: paimon-web-ui

- name: Install dependencies
run: npm install
working-directory: paimon-web-ui

- name: Build
run: npm run build
working-directory: paimon-web-ui
- name: Build
run: pnpm run build
working-directory: paimon-web-ui

0 comments on commit 1d4e874

Please sign in to comment.