summaryrefslogtreecommitdiff
path: root/.github/workflows/build-frontend.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-frontend.yml')
-rw-r--r--.github/workflows/build-frontend.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml
new file mode 100644
index 00000000..67f356b9
--- /dev/null
+++ b/.github/workflows/build-frontend.yml
@@ -0,0 +1,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