Skip to content

Commit

Permalink
feat: add ci for react
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Srivastava <adityasrivastava301199@gmail.com>
  • Loading branch information
ADI10HERO committed Aug 1, 2021
1 parent 923e823 commit 97710cc
Show file tree
Hide file tree
Showing 2 changed files with 16,790 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/frontend-ci.yml
@@ -0,0 +1,30 @@
name: "Frontend CI"
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
defaults:
run:
working-directory: ./FrontEndApp/v1-react

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
# - uses: actions/cache@v2
# with:
# path: ~/.npm
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
- run: npm ci
# CI=true treats warnings as error
# TODO: remove CI=false after all warnings are resolved
- run: CI=false npm run build --if-present
- run: npm test

0 comments on commit 97710cc

Please sign in to comment.