Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
fc629aa
README.md changes
Mohammed-Zrirake Jul 27, 2026
c0cfb59
update README
Mohammed-Zrirake Jul 27, 2026
02d5d70
Continuous Integration
Mohammed-Zrirake Jul 27, 2026
758e0fc
fix ci problem
Mohammed-Zrirake Jul 27, 2026
f8a107d
adding tests to my ci pipline
Mohammed-Zrirake Jul 27, 2026
2429131
faillure in tests ci
Mohammed-Zrirake Jul 27, 2026
5ba7f9c
code coverage activated
Mohammed-Zrirake Jul 27, 2026
c23253d
code coverage activated with sucess
Mohammed-Zrirake Jul 27, 2026
70006ad
adding coverage with sucess status
Mohammed-Zrirake Jul 27, 2026
3ec63b1
Add GitHub Actions badge
Mohammed-Zrirake Jul 27, 2026
0b41afd
add Badge for succesful tests workflow in README
Mohammed-Zrirake Jul 27, 2026
5eb3ff7
Fix README badge URL
Mohammed-Zrirake Jul 27, 2026
f1e8216
update content
Mohammed-Zrirake Jul 27, 2026
c75aef0
adding automated formatting as a new job
Mohammed-Zrirake Jul 27, 2026
f8836e3
adding formatting job
Mohammed-Zrirake Jul 27, 2026
ae41ba2
Merge branch 'main' into addtests
Mohammed-Zrirake Jul 27, 2026
3b42b87
Merge pull request #1 from Mohammed-Zrirake/addtests
Mohammed-Zrirake Jul 27, 2026
3f28c6e
adding formmating job and fixing pipleline problem
Mohammed-Zrirake Jul 27, 2026
e4caef9
adding a failing linting job
Mohammed-Zrirake Jul 27, 2026
a584c6d
adding a failing linting job
Mohammed-Zrirake Jul 27, 2026
cb8a2e7
adding an lint job
Mohammed-Zrirake Jul 27, 2026
0f96799
Merge pull request #2 from Mohammed-Zrirake/addtests
Mohammed-Zrirake Jul 27, 2026
ea25ac6
adding security checks without waring tolerance
Mohammed-Zrirake Jul 27, 2026
0a4245d
problems in ci
Mohammed-Zrirake Jul 27, 2026
5bdfd9b
adding an error
Mohammed-Zrirake Jul 27, 2026
f68c41d
adding security fix
Mohammed-Zrirake Jul 27, 2026
1688a6b
adding a fix to ci problem of indent
Mohammed-Zrirake Jul 27, 2026
577a2fd
fix problem
Mohammed-Zrirake Jul 27, 2026
20cc16c
adding a cd pipeline
Mohammed-Zrirake Jul 27, 2026
08f7c37
Merge pull request #3 from Mohammed-Zrirake/addtests
Mohammed-Zrirake Jul 27, 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
6 changes: 6 additions & 0 deletions .github/workflows/badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CD

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: Install dependencies
run: npm ci

- name: Build the app
run: npm run build

48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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: Check linting
run: npm run lint -- --max-warnings=0

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

This repo contains the typescript starter code for the "Notely" application for the "Learn CICD" course on [Boot.dev](https://boot.dev).

![Tests](https://github.com/Mohammed-Zrirake/learn-cicd-typescript-starter/actions/workflows/ci.yml/badge.svg)

## Local Development
Mohammed's version of Boot.dev's Notely app.

Author : Mohammed Zrirake
Changes Made on 27th july

Make sure you're on Node version 22+.

Expand Down
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,
]);
Loading