Skip to content

4575 - Rename datavis-color to color-datavis #5864

4575 - Rename datavis-color to color-datavis

4575 - Rename datavis-color to color-datavis #5864

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests and linters across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build Check
on:
pull_request:
branches: [ main ]
types: [ opened, reopened, synchronize, unlabeled ]
jobs:
build:
if: "!contains(github.event.pull_request.labels.*.name, 'skip ci tests')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "America/New_York"
timezoneMacos: "America/New_York"
timezoneWindows: "America/New_York"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Check Memory Limit
run: node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
- name: Install Dependencies
run: npm ci
- name: Run Lint Checks
run: npm run lint
- name: Install Browsers
run: npx playwright install --with-deps
- name: Build again
run: npm run build
- name: Run Percy Tests
run: npm run test:percy:ci
env:
NODE_OPTIONS: "--max-old-space-size=8192"
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- name: Run Tests with Coverage
run: npm run test:coverage:ci
env:
NODE_OPTIONS: "--max-old-space-size=8192"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}