chore: update bee-js to v12.2.2 #29
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: Build Test | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| template: [node, node-esm, node-ts, vite-tsx] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Build Project | |
| run: npm run build | |
| - name: Run bee-dev | |
| run: npx bee-dev & | |
| - name: Create folder for generated projects | |
| run: mkdir -p generated | |
| - name: Generate template | |
| run: node ../dist ${{ matrix.template }} ${{ matrix.template }} | |
| working-directory: ./generated | |
| - name: Install template dependencies | |
| run: npm install | |
| working-directory: ./generated/${{ matrix.template }} | |
| - name: Build template | |
| if: matrix.template == 'vite-tsx' || matrix.template == 'node-ts' | |
| run: npm run build | |
| working-directory: ./generated/${{ matrix.template }} | |
| - name: Run npm start | |
| if: matrix.template != 'vite-tsx' | |
| run: npm start | |
| working-directory: ./generated/${{ matrix.template }} |