[105] na fields #246
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Curator UI Node.js CI | |
on: | |
push: | |
branches: [main] | |
paths: | |
- ".github/workflows/curator-ui-node.yml" | |
- "verification/curator-service/ui/**" | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- ".github/workflows/curator-ui-node.yml" | |
- "verification/curator-service/ui/**" | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Build and test | |
run: | | |
git config --global url."https://github.com/".insteadOf git@github.com: | |
git config --global url."https://".insteadOf ssh:// | |
npm ci | |
npm run build | |
npm run test-and-coverage | |
working-directory: verification/curator-service/ui | |
env: | |
CI: true | |
- name: Upload test coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
file: verification/curator-service/ui/coverage/coverage-final.json |