chore(deps): pin dependencies #47
Workflow file for this run
This file contains hidden or 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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Setup Node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 | |
| with: | |
| node-version: 24 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| with: | |
| bun-version-file: package.json | |
| - name: Setup Task | |
| uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2 | |
| - name: Install dependencies | |
| run: bun ci | |
| - name: Validate | |
| run: task validate | |
| - name: Test | |
| run: task test | |
| - name: Build | |
| run: task build | |
| - name: Check package contents | |
| run: task check:package | |
| compat: | |
| name: Compat / ${{ matrix.name }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: react-18 | |
| packages: react@18 react-dom@18 @types/react@18 @types/react-dom@18 | |
| - name: react-19 | |
| packages: react@19 react-dom@19 @types/react@19 @types/react-dom@19 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Setup Node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 | |
| with: | |
| node-version: 24 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| with: | |
| bun-version-file: package.json | |
| - name: Setup Task | |
| uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2 | |
| - name: Install dependencies | |
| run: bun ci | |
| - name: Install compatibility packages | |
| run: bun add -d --no-save ${{ matrix.packages }} | |
| - name: Validate | |
| run: task validate | |
| - name: Test | |
| run: task test | |
| - name: Build | |
| run: task build |