Skip to content

Commit 8fba42d

Browse files
Merge pull request #3 from suhaibbinyounis/feat/ci-cd-setup
CI: Add Build Workflow & Dependabot
2 parents cd72bac + 6082a36 commit 8fba42d

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "monthly"

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [18.x, 20.x]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
26+
27+
- name: Install Dependencies
28+
run: npm ci
29+
30+
- name: Build and Lint
31+
# 'compile' script runs: check-types && lint && node esbuild.js
32+
run: npm run compile
33+
34+
- name: Test
35+
if: runner.os == 'Linux' # vscode-test requires a display server or xvfb on Linux, skipping for simple CI for now or strictly running unit tests
36+
run: echo "Skipping UI tests in headless CI for now"

0 commit comments

Comments
 (0)