Skip to content

chore(deps): bump the dependencies group across 1 directory with 12 updates #906

chore(deps): bump the dependencies group across 1 directory with 12 updates

chore(deps): bump the dependencies group across 1 directory with 12 updates #906

Workflow file for this run

# Run linting, unit tests, check build is possible.
# Standard requirements that should always be green.
# Tested on NodeJS LTS and current stable.
name: Verify
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit-tests:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: ['16', '18']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
env:
CYPRESS_INSTALL_BINARY: '0'
- name: Check commit message
if: ${{ github.event_name == 'pull_request' }}
run: yarn commitlint ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
- name: Linting & Unit testing
run: |
yarn build:libs
git diff --exit-code
yarn lint
yarn test
- name: Archive build artifacts
uses: actions/upload-artifact@v2
with:
name: build
path: |
packages/core/build
packages/formik/build
packages/icons/build
ui-tests:
needs: unit-tests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
browser: ['chrome']
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2
with:
name: build
path: packages/
- name: Run Cypress UI tests
run: |
yarn install --immutable --immutable-cache
yarn cypress:ui-tests &
yarn cypress:chrome
- name: Upload screenshots for failed UI tests
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: packages/ui-tests/cypress/screenshots
docs:
needs: unit-tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
- name: Install dependencies
run: yarn install --immutable --immutable-cache
env:
CYPRESS_INSTALL_BINARY: '0'
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2
with:
name: build
path: packages/
- name: Linting & Unit testing
run: |
yarn build:docs --env base="/practical-react-components/" --env prod="true"
git diff --exit-code
tar zcvf docs-static.tgz -C packages/docs dist
- name: Archive docs files
uses: actions/upload-artifact@v2
with:
name: docs-static
path: docs-static.tgz
deploy-docs:
needs: [docs, ui-tests]
runs-on: ubuntu-20.04
steps:
- name: Download docs files
uses: actions/download-artifact@v2
with:
name: docs-static
- name: Extract docs files
if: ${{ github.event_name != 'pull_request' }}
run: |
tar zxvf docs-static.tgz
- name: Deploy docs 🚀
if: ${{ github.event_name != 'pull_request' }}
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: docs # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch