-
Notifications
You must be signed in to change notification settings - Fork 389
41 lines (32 loc) · 897 Bytes
/
ci.yml
File metadata and controls
41 lines (32 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Node.js CI/CD
on:
pull_request:
branches: [ "*" ]
workflow_dispatch: # Allow manual triggering
jobs:
setup:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- 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.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
- name: Run tests
run: npm run test