maint: dep verions bump #74
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 | |
| - name: Clean install dependencies | |
| run: rm -rf node_modules package-lock.json && npm i | |
| # - name: Install dependencies | |
| # run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| test: | |
| name: Run Tests | |
| needs: setup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Restore npm cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| - name: Setup Deno 2.4.3 | |
| uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: 2.4.3 | |
| - name: Setup Bun 1.2.19 | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: 1.2.19 | |
| - name: Run tests | |
| id: test | |
| run: npm run test |