Skip to content

Commit

Permalink
[Merge] Add Frontend CI
Browse files Browse the repository at this point in the history
[Fixes #271] feat: add ci for react

--
Merge pull request #272 from ADI10HERO/ga-react
  • Loading branch information
ADI10HERO committed Aug 1, 2021
2 parents 4906217 + 1c97ae3 commit a927cab
Show file tree
Hide file tree
Showing 2 changed files with 16,789 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/frontend-ci.yml
@@ -0,0 +1,29 @@
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 }}
- 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 a927cab

Please sign in to comment.