Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 26 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,39 @@ name: Node.js CI/CD
on:
pull_request:
branches: [ "*" ]
workflow_dispatch: # Allow manual triggering

jobs:
build:
setup:
name: Build and Test
runs-on: ubuntu-latest
outputs:
test-result: ${{ steps.test.outcome }}

steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

- name: Use Node.js 20.x # Updated for Node 20
- 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: Setup Node.js 20.18.0
uses: actions/setup-node@v3
with:
node-version: 20.x
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: Run ci
run: npm ci
- name: Build project
run: npm run build

- name: Run tests
id: test
run: npm test
run: npm run test
Loading
Loading