fix(validation): wrong condition for required field #350
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'pull_request' }} | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout [master] | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v2 | |
with: | |
main-branch-name: 'master' | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
cache: yarn | |
- run: yarn install --frozen-lockfile --non-interactive --no-progress --prefer-offline | |
- run: npx nx affected --target=lint --parallel --max-parallel=3 | |
- run: npx nx affected --target=build --parallel --max-parallel=3 | |
- run: npx nx affected --target=test --parallel --max-parallel=2 --code-coverage | |
- run: npx nx affected --target=e2e --parallel --max-parallel=2 | |
- name: Codecov upload | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
pr: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'pull_request' }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 0 | |
- run: | | |
git fetch --no-tags --prune origin master | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v2 | |
with: | |
main-branch-name: 'master' | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
cache: yarn | |
- run: yarn install --frozen-lockfile --non-interactive --no-progress --prefer-offline | |
- run: npx nx affected --base=origin/master --target=lint --parallel --max-parallel=3 | |
- run: npx nx affected --base=origin/master --target=build --parallel --max-parallel=3 | |
- run: npx nx affected --base=origin/master --target=test --parallel --max-parallel=2 --code-coverage | |
- run: npx nx affected --base=origin/master --target=e2e --parallel --max-parallel=2 | |
- name: Clean before merge | |
run: yarn cleanBeforeMerge | |
- name: Codecov upload | |
uses: codecov/codecov-action@v2 | |
with: | |
verbose: true | |
token: ${{ secrets.CODECOV_TOKEN }} |