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

on: [push]

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