Add Validation for Phone Numbers #1308
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: Integration test | |
on: [push, pull_request] | |
jobs: | |
integration: | |
name: Integration test | |
if: "!github.event.deleted" | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/browsers:node-20.6.1-chrome-116.0.5845.187-1-ff-117.0-edge-116.0.1938.76-1 | |
options: --user 1001 | |
env: | |
TZ: Europe/Copenhagen | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
registry-url: "https://npm.pkg.github.com" | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
start: yarn start:storybook:test | |
wait-on: "http://localhost:57021" | |
browser: chrome | |
- name: Upload screenshots | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
- name: Upload videos | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: cypress-videos | |
path: cypress/videos | |
- name: Generate code coverage report | |
run: yarn run nyc report --reporter=clover --reporter=text --report-dir=./coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ./coverage/ | |
flags: integration | |
fail_ci_if_error: false | |
unit: | |
name: Unit test | |
if: "!github.event.deleted" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
registry-url: "https://npm.pkg.github.com" | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run unit tests | |
run: yarn test:unit |