feat: add select component #32
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-build-and-test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- run: pnpm add -g pnpm | |
- name: 'Setup Node.js with pnpm cache' | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm build | |
- name: 'Save build output' | |
uses: actions/cache/save@v4 | |
with: | |
path: ${{ github.workspace }} | |
key: ${{ runner.os }}-build-${{ github.sha }}-${{ github.run_id }} | |
bundlewatch: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- run: pnpm add -g pnpm | |
- name: 'Restore build output' | |
uses: actions/cache/restore@v4 | |
with: | |
path: ${{ github.workspace }} | |
key: ${{ runner.os }}-build-${{ github.sha }}-${{ github.run_id }} | |
restore-keys: ${{ runner.os }}-build-${{ github.sha }} | |
fail-on-cache-miss: true | |
- name: 'Setup Node.js with pnpm cache' | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm install | |
- uses: jackyef/bundlewatch-gh-action@master | |
with: | |
build-script: pnpm build | |
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} |