maint: dep verions bump #68
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: Node.js CI/CD | |
| on: | |
| pull_request: | |
| branches: [ "*" ] | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| setup: | |
| name: Setup and Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js 20.18.0 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.18.0 | |
| cache: "npm" | |
| - name: Update npm to required version | |
| run: npm install -g npm@10.8.2 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: build-output | |
| path: | | |
| dist/ | |
| node_modules/ | |
| retention-days: 1 | |
| test: | |
| name: Test Project | |
| needs: setup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js 20.18.0 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.18.0 | |
| - name: Update npm to required version | |
| run: npm install -g npm@10.8.2 | |
| - name: Setup Deno 2.4.x | |
| uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: 2.4.x | |
| - name: Setup Bun 1.2.x | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: 1.2.x | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v3 | |
| with: | |
| name: build-output | |
| - name: Run tests | |
| id: test | |
| run: npm test |