summaryrefslogtreecommitdiff
path: root/.github/workflows/build-frontend.yml
blob: e00340ed5359c06fd59ef2effaa977e395380331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Build Frontend

on:
  pull_request:
    branches: [master]

defaults:
  run:
    working-directory: opendc-web/opendc-web-ui

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest]
        node: [14.x]
    steps:
      - uses: actions/checkout@v2
      - name: Set up Node.js
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
      - run: npm install
      - run: npm run build --if-present
      - run: npm test
        env:
          CI: true