Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
bfd5c80
add my name to README
a897dsc Mar 24, 2026
c094ce9
add failing CI workflow
a897dsc Mar 24, 2026
7ec6816
update CI to show node version
a897dsc Mar 24, 2026
e755a06
fix tests for ApiKey authorization
a897dsc Mar 24, 2026
71dec4c
add npm ci and test steps to CI
a897dsc Mar 24, 2026
1fa868a
intentionally break tests to verify CI failure
a897dsc Mar 24, 2026
7c34ed8
fix tests: restore correct API key extraction
a897dsc Mar 24, 2026
a63ffc5
fix ci.yml syntax
a897dsc Mar 24, 2026
6481b40
fix tests to match ApiKey format
a897dsc Mar 24, 2026
7b28a4a
add test script and final ci workflow
a897dsc Mar 24, 2026
ee8c940
update package-lock.json with vitest
a897dsc Mar 24, 2026
31c1ab8
regenerate package-lock.json in Linux
a897dsc Mar 24, 2026
a529ebd
fresh package-lock.json for linux
a897dsc Mar 24, 2026
4923cec
switch from npm ci to npm install
a897dsc Mar 24, 2026
ca08432
use npm install --force to bypass lock issues
a897dsc Mar 24, 2026
9255c86
trigger CI again
a897dsc Mar 24, 2026
26c32d7
trigger CI
a897dsc Mar 24, 2026
f0d65cc
fix ci.yml properly
a897dsc Mar 24, 2026
3d094c8
fix json syntax + sync lock file
a897dsc Mar 24, 2026
b1d7ea1
rebuild clean lock file
a897dsc Mar 24, 2026
b820115
switch npm ci to npm install
a897dsc Mar 24, 2026
a66943c
add fallback for npm ci
a897dsc Mar 24, 2026
dbc5a38
add fallback for npm ci
a897dsc Mar 24, 2026
fbbc008
add @vitest/coverage-v8 for code coverage
a897dsc Mar 24, 2026
2c5d5d0
enable coverage in CI
a897dsc Mar 24, 2026
ed4c31c
add tests badge to README
a897dsc Mar 24, 2026
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
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci

on:
pull_request:
branches: [main]

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm install || npm ci # 🔥 بدل npm ci

- name: Run tests
run: npm run test -- --coverage
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Tests](https://github.com/a897dsc/learn-cicd-typescript-starter/actions/workflows/ci.yml/badge.svg)

# learn-cicd-typescript-starter (Notely)

This repo contains the typescript starter code for the "Notely" application for the "Learn CICD" course on [Boot.dev](https://boot.dev).
Expand All @@ -22,3 +24,6 @@ npm run dev
_This starts the server in non-database mode._ It will serve a simple webpage at `http://localhost:8080`.

You do _not_ need to set up a database or any interactivity on the webpage yet. Instructions for that will come later in the course!

Abdullahversion of Boot.dev's Notely app.

Loading