Skip to content

Migrated DateField tests to @testing-library/react #1469

Migrated DateField tests to @testing-library/react

Migrated DateField tests to @testing-library/react #1469

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
CI:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
cache: npm
node-version: ${{ matrix.node-version }}
- name: Check dependency duplications
uses: vazco/open-standards/actions/npm-dependency-duplications/@master
- name: Check dependency vulnerabilities
uses: vazco/open-standards/actions/npm-dependency-vulnerabilities/@master
- name: Install
run: npm i -g npm@8 --no-audit && npm ci --no-audit
- name: Lint
run: npm run lint
- name: Test
run: npm run coverage -- --no-cache --runInBand
- name: Report coverage
uses: codecov/[email protected]
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Build docs
run: npm --prefix website run build
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.node-version == '20.x'
- name: Deploy docs
uses: peaceiris/[email protected]
with:
allow_empty_commit: true
cname: uniforms.tools
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.node-version == '20.x'