chore(deps): bump the dependencies group with 7 updates #867
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
# 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/[email protected] | |
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 |