Merge pull request #1380 from ORCID/loginIssues #738
This file contains hidden or 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: Angular Unit Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| # Ignore workflow changes | |
| - '.github/**' | |
| pull_request: | |
| branches: [ main ] | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| build-ui: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| cache-dependency-path: 'ui/package-lock.json' | |
| - name: Install dependencies | |
| working-directory: ui | |
| run: npm ci | |
| - name: Run tests | |
| working-directory: ui | |
| run: npm test | |
| build-ui-2: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| cache-dependency-path: 'ui-2/package-lock.json' | |
| - name: Install dependencies | |
| working-directory: ui-2 | |
| run: npm ci | |
| - name: Run tests | |
| working-directory: ui-2 | |
| run: npm test |