Add github workflows (#254)

* Add new workflows to set labels and build/test the backend

* Add frontend workflow

* Limit triggers to PUSH only

* Fix so that BE and FE are mutually exclusive

* Bump up frontend

* Fix case to match current tags
This commit is contained in:
Chevdor
2020-04-17 21:45:32 +02:00
committed by GitHub
parent 35a9b1af2e
commit 00d21ef16c
5 changed files with 87 additions and 1 deletions
+38
View File
@@ -0,0 +1,38 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Frontend CI
on:
push:
paths:
- 'frontend/**'
- '!backend/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install
working-directory: ./frontend
run: yarn install
- name: check
run: yarn check
working-directory: ./frontend
- name: Test
run: yarn test
working-directory: ./frontend
- name: Build
working-directory: ./frontend
run: yarn build