Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
47ce47b
update
Yasmeenkhaleel1 Mar 19, 2026
f4cc120
update README with custom message
Yasmeenkhaleel1 Mar 19, 2026
b30159d
add CI workflow
Yasmeenkhaleel1 Mar 19, 2026
5ace83c
add CI workflow
Yasmeenkhaleel1 Mar 19, 2026
ebf56dc
uu
Yasmeenkhaleel1 Mar 19, 2026
101e44b
run tests1
Yasmeenkhaleel1 Mar 19, 2026
78fb130
run tests in CI
Yasmeenkhaleel1 Mar 19, 2026
317b301
run tests in CI
Yasmeenkhaleel1 Mar 19, 2026
948a139
add test coverage
Yasmeenkhaleel1 Mar 19, 2026
e794dcb
add CI badge
Yasmeenkhaleel1 Mar 19, 2026
4ba8945
add style CI job for prettier check
Yasmeenkhaleel1 Mar 20, 2026
c2b69b5
fix eslint config and ignore dist
Yasmeenkhaleel1 Mar 20, 2026
7084ddb
fix eslint config and ignore dist
Yasmeenkhaleel1 Mar 20, 2026
730b0c0
add lint step to CI
Yasmeenkhaleel1 Mar 21, 2026
992a5aa
remove unused function
Yasmeenkhaleel1 Mar 21, 2026
65ee919
fix formatting
Yasmeenkhaleel1 Mar 21, 2026
eb39fa9
fix formatting
Yasmeenkhaleel1 Mar 21, 2026
9d0c205
fix formatting
Yasmeenkhaleel1 Mar 21, 2026
2007551
fix formatting
Yasmeenkhaleel1 Mar 21, 2026
bd2b734
fix formatting
Yasmeenkhaleel1 Mar 21, 2026
f4b6859
fail CI on security warnings
Yasmeenkhaleel1 Mar 21, 2026
11676fb
fix security vulnerability: replace pseudoRandomBytes with randomBytes
Yasmeenkhaleel1 Mar 21, 2026
821367a
fix security vulnerability: replace pseudoRandomBytes with randomBytes
Yasmeenkhaleel1 Mar 22, 2026
9f8d889
fix security vulnerability: replace pseudoRandomBytes with randomBytes
Yasmeenkhaleel1 Mar 22, 2026
d65e907
add cd workflow
Yasmeenkhaleel1 Mar 23, 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
22 changes: 22 additions & 0 deletions .github/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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: Force Failure
run: (exit 1)
24 changes: 24 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CD

on:
push:
branches: [main]

jobs:
Deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install dependencies
run: npm ci

- name: Build app
run: npm run build
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main, addtests]

jobs:
style:
name: Style
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: 20

- name: Install dependencies
run: npm install

- name: Check formatting
run: npm run format:check

- name: Lint
run: npm run lint -- --max-warnings=0

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: 20

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
![CI Status](https://github.com/Yasmeenkhaleel1/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 +23,4 @@ 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!
YASMEEN's version of Boot.dev's Notely app.
19 changes: 19 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import { defineConfig } from "eslint/config";
import pluginSecurity from "eslint-plugin-security";

export default defineConfig([
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
plugins: { js },
extends: ["js/recommended"],
},
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
languageOptions: { globals: globals.node },
},
tseslint.configs.recommended,
pluginSecurity.configs.recommended,
]);
Empty file.
Empty file added npx
Empty file.
Loading