chore: release v4.0.0-0 #458
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build, lint and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛒 Checkout repo | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- name: ⚒️ Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: 📦 Install Dependencies | |
run: npm run bootstrap | |
- name: 🚦 Lint | |
run: pnpm run lint | |
- name: 🔨 Build | |
run: pnpm run --filter react-compare-slider build | |
- name: 🧑🏫 Build Example Project | |
run: pnpm run --filter @this/example build | |
- name: 🕵️ Check Package Configuration | |
run: pnpm run --filter react-compare-slider check:package | |
- name: 🧪 Test | |
run: | | |
pnpm dlx [email protected] install --with-deps chromium | |
pnpm run test:ci | |
- name: Upload Code Climate Test Coverage | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: '${{ secrets.CC_TEST_REPORTER_ID }}' | |
with: | |
debug: true | |
coverageLocations: | | |
${{github.workspace}}/coverage/ssr-tests/*.info:lcov | |
${{github.workspace}}/coverage/storybook/*.info:lcov | |
- uses: preactjs/compressed-size-action@v2 | |
with: | |
repo-token: '${{ secrets.GITHUB_TOKEN }}' | |
install-script: 'pnpm install --frozen-lockfile --filter react-compare-slider' | |
build-script: 'build' | |
cwd: lib |