fix(#7007): Replace validate color with tiny color 2 (#7009) #6456
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: Node CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
cms: ${{ steps.filter.outputs.cms }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
cms: | |
- '!website/**' | |
build: | |
needs: changes | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
node-version: [16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- name: Use Node.js {{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
check-latest: true | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- name: log versions | |
run: node --version && npm --version && yarn --version | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- name: install dependecies | |
run: yarn --frozen-lockfile --network-timeout 1000000 && yarn bootstrap | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- name: run unit tests | |
run: yarn test:ci | |
env: | |
CI: true | |
NODE_OPTIONS: --max-old-space-size=4096 | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- name: build demo site | |
run: yarn build:demo | |
env: | |
NODE_OPTIONS: --max-old-space-size=4096 | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- uses: actions/upload-artifact@master | |
with: | |
name: dev-test-website-${{ runner.os }} | |
path: dev-test | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
e2e-with-cypress: | |
needs: [changes, build] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
check-latest: true | |
cache: yarn | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- uses: actions/download-artifact@master | |
with: | |
name: dev-test-website-${{ runner.os }} | |
path: dev-test | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- name: npm install | |
run: | | |
node --version | |
npm --version | |
yarn --version | |
yarn --frozen-lockfile | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- name: e2e test | |
run: | | |
yarn test:e2e:run-ci | |
env: | |
IS_FORK: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
NODE_OPTIONS: --max-old-space-size=4096 | |
MACHINE_COUNT: 2 | |
MACHINE_INDEX: ${{ matrix.node-version }} | |
if: ${{ needs.changes.outputs.cms == 'true' }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() && needs.changes.outputs.cms == 'true' }} | |
with: | |
name: cypress-results-${{ matrix.node-version }} | |
path: | | |
cypress/screenshots | |
cypress/videos |