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
4ad41d8
modified README.md
Ioana-Smurf Feb 25, 2026
95e6f87
change README.md
Ioana-Smurf Feb 25, 2026
019e519
adding ci.yml
Ioana-Smurf Feb 25, 2026
8621a8b
change ci.yml
Ioana-Smurf Feb 25, 2026
f795468
change ci.yml
Ioana-Smurf Feb 25, 2026
ef24629
change ci.yml
Ioana-Smurf Feb 25, 2026
6dc3fd5
change ci.yml
Ioana-Smurf Feb 25, 2026
b162978
add coverage
Ioana-Smurf Feb 25, 2026
a6971d8
add coverage
Ioana-Smurf Feb 25, 2026
2fed6c8
add badge
Ioana-Smurf Feb 25, 2026
a40f9dd
Merge pull request #1 from Ioana-Smurf/addtests
Ioana-Smurf Feb 25, 2026
1844b52
add badge
Ioana-Smurf Feb 25, 2026
10a6fa9
style test add
Ioana-Smurf Feb 25, 2026
9df65df
style test add
Ioana-Smurf Feb 25, 2026
543531b
Merge pull request #2 from Ioana-Smurf/addtests
Ioana-Smurf Feb 25, 2026
2a535b3
adding lint
Ioana-Smurf Feb 25, 2026
ae9a634
adding lint
Ioana-Smurf Feb 25, 2026
2187a1d
Merge pull request #3 from Ioana-Smurf/addtests
Ioana-Smurf Feb 25, 2026
b5f1133
adding security module lint
Ioana-Smurf Feb 25, 2026
af712da
Merge pull request #4 from Ioana-Smurf/addtests
Ioana-Smurf Feb 25, 2026
9913de1
fixing security issues
Ioana-Smurf Feb 25, 2026
7ab5102
Merge pull request #5 from Ioana-Smurf/addtests
Ioana-Smurf Feb 25, 2026
674c204
adding cd
Ioana-Smurf Mar 4, 2026
1babf72
Merge pull request #6 from Ioana-Smurf/addtests
Ioana-Smurf Mar 4, 2026
319cffd
change job name
Ioana-Smurf Mar 4, 2026
ee0d32f
Merge pull request #7 from Ioana-Smurf/addtests
Ioana-Smurf Mar 4, 2026
c37ad8c
annoying
Ioana-Smurf Mar 4, 2026
63c135f
Add gcp build step
Ioana-Smurf Mar 4, 2026
4d10a4f
add CG step
Ioana-Smurf Mar 4, 2026
1fb6c2b
Merge pull request #8 from Ioana-Smurf/addtests
Ioana-Smurf Mar 4, 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
31 changes: 31 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: cd

on:
push:
branches: [main]

jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22

- run: npm ci
- run: npm run build
- id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v3

- name: gcloud info (sanity check)
run: gcloud info
- name: Build & push Docker image (Cloud Build)
run: gcloud builds submit --tag us-central1-docker.pkg.dev/notely-489217/notely-ar-repo/notely:v1 .

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, addtests]

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 test
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: style-check
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,5 +1,7 @@
![CI](https://github.com/Ioana-Smurf/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).

## Local Development
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!

Ioana'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,
]);
Loading