Skip to content

Commit b97a237

Browse files
ozersclaude
andcommitted
Add CI/CD pipeline with GitHub Actions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 10efd9d commit b97a237

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18, 20]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: npm
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Lint
29+
run: npm run lint
30+
31+
- name: Test
32+
run: npm test
33+
34+
- name: Build
35+
run: npm run build

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
Static analysis CLI that scans your Node.js Lambda project and tells you exactly what's slowing down your cold starts — and how to fix it.
88

9+
[![CI](https://github.com/ozers/lambda-doctor/actions/workflows/ci.yml/badge.svg)](https://github.com/ozers/lambda-doctor/actions/workflows/ci.yml)
910
[![npm](https://img.shields.io/npm/v/lambda-doctor)](https://www.npmjs.com/package/lambda-doctor)
1011
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
1112
[![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue.svg)](https://www.typescriptlang.org/)

0 commit comments

Comments
 (0)