summaryrefslogtreecommitdiff
path: root/.github/workflows/build-frontend.yml
blob: 67f356b9f58f4b405af5358effca64a349a5926f (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
29
30
31
name: Build Frontend

on:
  push:
    paths:
      - 'frontend/**'
  pull_request:
    branches: [master]

defaults:
  run:
    working-directory: frontend

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest]
        node: [12.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