Skip to content
Open

test #751

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
b881c9b
´updated´
Suimrah Aug 14, 2026
49f3356
¨workflow¨
Suimrah Aug 14, 2026
c08fc51
Merge pull request #1 from Suimrah/addtests
Suimrah Aug 14, 2026
911bc13
¨fixed¨
Suimrah Aug 14, 2026
7fc88c3
Merge pull request #2 from Suimrah/addtests
Suimrah Aug 14, 2026
f7f70ee
changes
Suimrah Aug 14, 2026
7ecb61a
fixed
Suimrah Aug 14, 2026
ce21cfb
ci: run tests on Node 26 to match local toolchain
Suimrah Aug 14, 2026
7f6b3fa
Merge pull request #3 from Suimrah/addtests
Suimrah Aug 14, 2026
fe2d746
updated tests
Suimrah Aug 14, 2026
e64eadb
update
Suimrah Aug 14, 2026
86f0836
Merge pull request #4 from Suimrah/addtests
Suimrah Aug 14, 2026
94fa507
update workflow
Suimrah Aug 14, 2026
55c8411
Merge pull request #5 from Suimrah/addtests
Suimrah Aug 14, 2026
90bf1df
ci: add style job, fix package.json syntax
Suimrah Aug 14, 2026
d144d5e
Merge pull request #6 from Suimrah/addtests
Suimrah Aug 14, 2026
7c33914
link update
Suimrah Aug 14, 2026
fb71168
updated
Suimrah Aug 14, 2026
78f3d38
Merge pull request #7 from Suimrah/addtests
Suimrah Aug 14, 2026
2dce858
security lint
Suimrah Aug 17, 2026
183a405
updated security
Suimrah Aug 17, 2026
1b3e766
updated
Suimrah Aug 17, 2026
89c9625
Merge pull request #8 from Suimrah/addtests
Suimrah Aug 17, 2026
ac426dc
updated for error
Suimrah Aug 17, 2026
9f09934
update randombytes
Suimrah Aug 17, 2026
7a88a2a
Merge pull request #9 from Suimrah/addtests
Suimrah Aug 17, 2026
213af7a
update workflow
Suimrah Aug 17, 2026
d5663d1
Merge pull request #10 from Suimrah/addtests
Suimrah Aug 17, 2026
5178299
ci: use Node 26 in cd.yml to match ci.yml
Suimrah Aug 17, 2026
3b5eb18
Merge pull request #11 from Suimrah/addtests
Suimrah Aug 17, 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
25 changes: 25 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy

on:
push:
branches: [main]

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Setup Node Environment
uses: actions/setup-node@v5
with:
node-version: 26

- name: Install dependencies
run: npm ci

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

on:
pull_request:
branches: [main]

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v5
with:
node-version: 26

- name: Install Dependencies
run: npm ci

- name: Run Tests
run: npm run test
style:
name: Style
runs-on: ubuntu-latest


steps:
- name: Check out code
uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v5
with:
node-version: 26

- name: Install Dependencies
run: npm ci

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

- name: Lint
run: npm run lint -- --max-warnings=0
9 changes: 9 additions & 0 deletions .github/workflows/eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import { defineConfig } from "eslint/config";

export default defineConfig([
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } },
tseslint.configs.recommended,
]);
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 node:22-slim
FROM --platform=linux/amd64 node:26-slim

WORKDIR /usr/src/app

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
https://github.com/Suimrah/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!
Alex's version of Boot.dev's Notely app.
24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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,
ecmaVersion: "latest",
sourceType: "module"

},
},
tseslint.configs.recommended,
pluginSecurity.configs.recommended,
]);
Loading