we want to be able to publish a subset of packages to NPM #110
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: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Node.js lts/* | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'yarn' | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build Project | |
run: NODE_OPTIONS='--max-old-space-size=4096' yarn build:all | |
- name: Check types | |
run: yarn check-types | |
- name: Run tests | |
# run: PUPPETEER_EXECUTABLE_PATH=${{ steps.setup-chrome.outputs.chrome-path }} PUPPETEER_HEADLESS=true xvfb-run --server-args="-screen 0 1920x1080x24" yarn test | |
run: PUPPETEER_HEADLESS=true xvfb-run --server-args="-screen 0 1920x1080x24" yarn test | |
- name: Check bundle sizes | |
uses: preactjs/compressed-size-action@v2 | |
with: | |
install-script: "yarn install --frozen-lockfile" | |
build-script: "build:all" | |
compression: "none" | |
pattern: "**/dist/*.{js,cjs,mjs,css}" | |
- name: Upload diff images to GitHub | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: image-diff | |
path: packages/**/__image_snapshots__/__diff_output__/*.png | |
if-no-files-found: ignore |