Skip to content

refactor: convert menu.less to menu.module.css #1439

refactor: convert menu.less to menu.module.css

refactor: convert menu.less to menu.module.css #1439

Workflow file for this run

name: Build and test
on: pull_request
jobs:
build-and-test:
runs-on: ubuntu-latest
# Based on historical data
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Prepare Node.js environment
uses: actions/setup-node@v6
with:
cache: npm
node-version-file: .node-version
- name: Cache project 'node_modules' directory
id: node-modules-cache
uses: actions/cache@v4
with:
key: node-modules-cache-${{ hashFiles('**/package-lock.json', '**/.node-version') }}
path: node_modules/
- name: Install project npm dependencies
if: ${{ steps.node-modules-cache.outputs.cache-hit != 'true' }}
run: npm ci
- name: Check React Compiler compatibility
run: |
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMR origin/${{ github.base_ref }}...HEAD -- 'src/**/*.ts' 'src/**/*.tsx' 'src/**/*.js' 'src/**/*.jsx' | tr '\n' ' ')
if [ -n "$CHANGED_FILES" ]; then
echo "Checking React Compiler compatibility for: $CHANGED_FILES"
npx @doist/react-compiler-tracker --check-files $CHANGED_FILES
else
echo "No source files changed, skipping React Compiler check"
fi
- run: npm run lint
- run: npm run type-check
- run: npm test
- run: npm run build