Skip to content

perf(playground): apply optimizeCss to remove unused styles (#124) #185

perf(playground): apply optimizeCss to remove unused styles (#124)

perf(playground): apply optimizeCss to remove unused styles (#124) #185

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
node: [20]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: yarn-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
- name: Build the library
run: yarn prepack
- name: Run unit tests
run: yarn test
# Only trigger deploy if previous steps pass and branch is main
- name: Deploy docs
if: matrix.os == 'macos-latest' && github.ref == 'refs/heads/main'
env:
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
run: curl "$deploy_url"