Skip to content

Merge pull request #436 from DataRecce/feature/drc-709-change-add-to-… #126

Merge pull request #436 from DataRecce/feature/drc-709-change-add-to-…

Merge pull request #436 from DataRecce/feature/drc-709-change-add-to-… #126

Workflow file for this run

name: Test JS
on:
push:
branches:
- main
paths:
- "js/**"
pull_request:
branches:
- main
paths:
- "js/**"
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
with:
version: 8
run_install: false
- 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
working-directory: ./js
run: pnpm install --frozen-lockfile
- name: Run linters
working-directory: ./js
run: pnpm lint --max-warnings=0
- name: Build the static files
working-directory: ./js
run: pnpm build