Merge pull request #455 from bseenu/ROOT_PATH #565
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: build-test | |
on: [push, pull_request] | |
jobs: | |
build-client: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: "./client" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node 16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- run: npm ci | |
working-directory: ${{env.working-directory}} | |
- run: npm run build | |
working-directory: ${{env.working-directory}} | |
- run: npm run lint:ci | |
working-directory: ${{env.working-directory}} | |
# - run: npm test | |
# working-directory: ${{env.working-directory}} | |
# @TODO: Commented out server section, as existing server doesn't support linting. leaving as a placeholder for later | |
# build-server: | |
# runs-on: ubuntu-latest | |
# env: | |
# working-directory: "./server" | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Setup node 16 | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: 16.x | |
# - run: npm ci | |
# working-directory: ${{env.working-directory}} | |
# - run: npm run build | |
# working-directory: ${{env.working-directory}} | |
# - run: npm run lint:ci | |
# working-directory: ${{env.working-directory}} | |
# - run: npm test | |
# working-directory: ${{env.working-directory}} |