Smooth upgrade mount pod #188
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dashboard CI | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'Makefile' | |
- 'docker/Makefile' | |
- 'docker/dashboard.Dockerfile' | |
- 'dashboard-ui-v2/**' | |
- 'cmd/dashboard/**' | |
- 'pkg/dashboard/**' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'Makefile' | |
- 'docker/Makefile' | |
- 'docker/dashboard.Dockerfile' | |
- 'dashboard-ui-v2/**' | |
- 'cmd/dashboard/**' | |
- 'pkg/dashboard/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 9 | |
run_install: false | |
- name: Set Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: cd dashboard-ui-v2 && pnpm install | |
- name: Lint dashboard | |
run: cd dashboard-ui-v2 && pnpm run lint | |
- name: Build dashboard | |
run: make dashboard-dist |