[misc] Add github action for frontend

This commit is contained in:
Cathy Hu 2020-09-05 02:09:16 +02:00
parent 32dd8b9207
commit 551f3c95b6
2 changed files with 44 additions and 2 deletions

View file

@ -1,6 +1,11 @@
name: Python package name: Python Backend
on: [push, pull_request] on:
push:
paths:
- "kibicara/**"
- "tests/**"
pull_request:
jobs: jobs:
build: build:

37
.github/workflows/frontend.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Angular Frontend
on:
push:
paths:
- "kibicara-frontend/**"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./kibicara-frontend
strategy:
matrix:
node-version: [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 Packages
run: npm i
working-directory: ${{env.working-directory}}
- name: Install Angular CLI
run: npm i -g @angular/cli
working-directory: ${{env.working-directory}}
- name: Run Linter
run: ng lint
working-directory: ${{env.working-directory}}