[misc] Add github action for frontend
This commit is contained in:
parent
32dd8b9207
commit
551f3c95b6
9
.github/workflows/backend.yml
vendored
9
.github/workflows/backend.yml
vendored
|
@ -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
37
.github/workflows/frontend.yml
vendored
Normal 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}}
|
Loading…
Reference in a new issue