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
7da638e
Add text in README.md as my version of Notely app
almerleoalmazan Apr 8, 2026
4ec1511
chore: added github actions worklows
almerleoalmazan Apr 10, 2026
92caf6a
fix the test failure to print node version
almerleoalmazan May 3, 2026
b88602c
add npm ci to github actions and vitest
almerleoalmazan May 3, 2026
38c7e31
fix: sync lock file
almerleoalmazan May 3, 2026
d2771a8
fix: include optional deps in CI
almerleoalmazan May 3, 2026
5cafed0
fix: pin npm version in CI
almerleoalmazan May 3, 2026
4e19425
fix: github ci update
almerleoalmazan May 3, 2026
1ab24b0
Add package lock for CI
almerleoalmazan May 3, 2026
bb4c488
chore: add code coverage
almerleoalmazan May 3, 2026
0ee8438
chore: add badge tests
almerleoalmazan May 3, 2026
85fdaab
Merge pull request #1 from almerleoalmazan/addtests
almerleoalmazan May 3, 2026
6b6444b
chore: add prettier for fomatting code check
almerleoalmazan May 3, 2026
7048944
chore: add linting ci
almerleoalmazan May 3, 2026
438a79f
chore: remove unused function
almerleoalmazan May 3, 2026
f13a653
chore: add eslint and configs
almerleoalmazan May 4, 2026
f751caa
fix: lint issues
almerleoalmazan May 4, 2026
dfbd4cd
fix: formatting issues
almerleoalmazan May 4, 2026
25f84bd
fix: update tsconfig.json to run docker build properly
almerleoalmazan May 4, 2026
624d689
chore: add cd.yml for continuous deliver
almerleoalmazan May 5, 2026
f422299
Merge pull request #2 from almerleoalmazan/addtests
almerleoalmazan May 6, 2026
8e6b691
chore: add npm install dependencies
almerleoalmazan May 6, 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
28 changes: 28 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy

on:
push:
branches: [main]

jobs:
deploy:
name: 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: Fix npm version
run: npm install -g npm@10

- name: Install dependencies
run: npm ci --force

- name: Build the app
run: npm run build
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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: Fix npm version
run: npm install -g npm@10

- name: Install dependencies
run: npm ci --force

- 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: Fix npm version
run: npm install -g npm@10

- name: Install dependencies
run: npm ci --force

- name: Run formating
run: npm run format:check

- name: Run linting
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 @@
![Badge Tests](https://github.com/almerleoalmazan/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!

Almer's version of Boot.dev's Notely app.
22 changes: 22 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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([
{
ignores: ["dist/**"],
},
{
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,
]);
Loading