ICTU/quality-time

View on GitHub
.github/workflows/frontend.yml

Summary

Maintainability
Test Coverage
---
name: Frontend

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [22.x]

    steps:
      - uses: actions/checkout@v4.2.2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v4.1.0
        with:
          node-version: ${{ matrix.node-version }}
      - name: npm install, build, and test
        run: |
          cd components/frontend
          npm ci
          npm run --ignore-scripts build --if-present
          ci/unittest.sh
          ci/quality.sh
        env:
          CI: true