Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ecc17dd
Update README to include author's version note
alokreddy Nov 13, 2025
38d1672
Add CI workflow configuration for pull requests
alokreddy Nov 13, 2025
82fec13
Replace Force Failure step with Node Version check in CI workflow
alokreddy Nov 13, 2025
2e0e6fb
feat: add vitest for testing and create initial auth test
alokreddy Nov 13, 2025
88e38ee
fix: update person isActive status to true in auth test
alokreddy Nov 13, 2025
7edbaae
feat: update CI workflow to include coverage in test run
alokreddy Nov 13, 2025
5305d45
fix: update Node.js version to 22 in CI workflow
alokreddy Nov 13, 2025
e3e73c9
docs: add Tests Status badge to README
alokreddy Nov 13, 2025
533df09
Merge pull request #2 from alokreddy/addtests
alokreddy Nov 13, 2025
21921e8
fix: correct syntax for Tests Status badge in README
alokreddy Nov 13, 2025
0cc9b19
feat: add Prettier for code formatting and update CI workflow to incl…
alokreddy Nov 13, 2025
ee067a8
Merge pull request #3 from alokreddy/addtests
alokreddy Nov 13, 2025
02db3f0
Revert "feat: add Prettier for code formatting and update CI workflow…
alokreddy Nov 13, 2025
338c311
Merge pull request #4 from alokreddy/revert-3-addtests
alokreddy Nov 13, 2025
402a793
feat: add Prettier for code formatting and update scripts in package.…
alokreddy Nov 13, 2025
034f951
feat: add style check step to CI workflow
alokreddy Nov 13, 2025
3aef88f
feat: restructure CI workflow to include style checks
alokreddy Nov 13, 2025
621923d
chore: update package.json for linting and formatting tools
alokreddy Nov 17, 2025
223f203
fix(unused-fn): remove unused function
alokreddy Nov 17, 2025
b3872e6
feat: enhance linting process with security plugin and strict warning…
alokreddy Nov 17, 2025
ef99297
fix: replace pseudoRandomBytes with randomBytes for secure hash gener…
alokreddy Nov 17, 2025
1c6b382
feat: add continuous deployment workflow for main branch
alokreddy Nov 19, 2025
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/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches: [main]

jobs:
Deploy:
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 ci

- name: Build application
run: npm run build
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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 ci

- name: Run tests
run: npm run test -- --coverage

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

- name: Install dependencies
run: npm ci

- name: Check formatting
run: npm run format:check
- name: Run lint
run: npm run lint -- --max-warnings=0
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Tests Status](https://github.com/alokreddy/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,5 @@ 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!

Alok's version of Boot.dev's Notely app.
21 changes: 21 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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"],
languageOptions: { globals: globals.browser },
ignores: ["./dist/**"],
},
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
languageOptions: { globals: globals.node },
},
tseslint.configs.recommended,
pluginSecurity.configs.recommended,
]);
Loading