summaryrefslogtreecommitdiff
path: root/.github/workflows/frontend.yml
blob: ec4a7e7121b383945e785ab12c9e9f87331d50b5 (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
name: Frontend

on:
    push:
        paths:
        - 'frontend/*'

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