summaryrefslogtreecommitdiff
path: root/.github/workflows/frontend.yml
blob: 494c0829d5e795a1e8fbcf9643a23bacc2b46b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Frontend

on: [push]

jobs:
    build:
        runs-on: ubuntu-latest
        steps:
            -   uses: actions/checkout@v2
            -   name: Set up Node.js
                uses: actions/setup-node@v1
                with:
                    node-version: 12.x
            -   run: npm install
                working-directory: frontend
            -   run: npm run build --if-present
                working-directory: frontend
            -   run: npm test
                working-directory: frontend
                env:
                    CI: true