name: UnitTCMS CI on: push: branches: [ "main", "develop" ] pull_request: branches: [ "main", "develop" ] jobs: unittcms-test: runs-on: ubuntu-latest strategy: matrix: node-version: [20.x] steps: - uses: actions/checkout@v4 # root - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install dependencies run: npm ci - name: Format code run: npm run format - name: Run unit tests run: npm run test # frontend - name: Install frontend dependencies working-directory: ./frontend run: npm ci - name: Build frontend working-directory: ./frontend run: npm run build