first iteration done #156
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FE Test and Build | |
on: | |
push: | |
branches-ignore: | |
- master | |
paths: | |
- thirdeye-ui/** | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pull Repository | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
thirdeye-ui | |
- name: Install node and npm | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
cache: "npm" | |
cache-dependency-path: './thirdeye-ui/package-lock.json' | |
- name: Install dependencies, run test, and build | |
run: | | |
cd thirdeye-ui | |
npm ci | |
npm run test | |
npm run build |