Skip to content

Documentation & Github CI #1

Documentation & Github CI

Documentation & Github CI #1

Workflow file for this run

name: Frontend CI
on:
pull_request:
branches: [ main, staging ]
jobs:
build-and-check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./multi-git-dashboard
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: './multi-git-dashboard/package-lock.json'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present
env:
MONGODB_URI: mongodb://localhost:27017/crisp
- name: Check formatting
run: npm run prettier-format -- --check