summaryrefslogtreecommitdiff
path: root/.github/workflows/frontend.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/frontend.yml')
-rw-r--r--.github/workflows/frontend.yml38
1 files changed, 23 insertions, 15 deletions
diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml
index 494c0829..ec4a7e71 100644
--- a/.github/workflows/frontend.yml
+++ b/.github/workflows/frontend.yml
@@ -1,21 +1,29 @@
name: Frontend
-on: [push]
+on:
+ push:
+ paths:
+ - 'frontend/*'
+
+defaults:
+ run:
+ working-directory: frontend
jobs:
build:
- runs-on: ubuntu-latest
+ 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: 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
+ - 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