summaryrefslogtreecommitdiff
path: root/.github/workflows/build-frontend.yml
blob: 73ab49d58d894e140d5325113c0a395c168ee011 (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: [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