Skip to content

add readme #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
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
cbefe26
README add newline
Michal-Ploszczyca Jan 11, 2025
dad0920
Add MYNAME's version line to README
Michal-Ploszczyca Jan 11, 2025
03fd1d4
Merge pull request #1 from Michal-Ploszczyca/compare
Michal-Ploszczyca Jan 11, 2025
30267a1
add github/workflow yml test
Michal-Ploszczyca Jan 16, 2025
3033f6b
Add ci.yml workflow file
Michal-Ploszczyca Jan 16, 2025
0eef5f4
test change to check node version
Michal-Ploszczyca Jan 17, 2025
7c24acf
Update last step to print Node version instead of forcing failure
Michal-Ploszczyca Jan 17, 2025
96bcf65
changes to fail the workflow
Michal-Ploszczyca Jan 26, 2025
ab4a9bc
changes to fail the workflow fix
Michal-Ploszczyca Jan 26, 2025
9a562ba
test fix
Michal-Ploszczyca Jan 26, 2025
1c25be2
Merge pull request #4 from Michal-Ploszczyca/addtests
Michal-Ploszczyca Jan 26, 2025
27c5d12
install and add code coverage to ci
Michal-Ploszczyca Jan 26, 2025
038fc43
Merge pull request #5 from Michal-Ploszczyca/addtests
Michal-Ploszczyca Jan 26, 2025
66ac0dc
iadd badge for tests
Michal-Ploszczyca Jan 26, 2025
70e1436
Merge pull request #6 from Michal-Ploszczyca/addtests
Michal-Ploszczyca Jan 26, 2025
381ff4e
iadd badge for tests fix
Michal-Ploszczyca Jan 26, 2025
f379102
Merge pull request #7 from Michal-Ploszczyca/addtests
Michal-Ploszczyca Jan 26, 2025
60694dc
fix badge
Michal-Ploszczyca Jan 26, 2025
a32be7d
Merge pull request #8 from Michal-Ploszczyca/addtests
Michal-Ploszczyca Jan 26, 2025
04355a3
add prettier workflow test
Michal-Ploszczyca Jan 26, 2025
4959cda
fix for yml syntax
Michal-Ploszczyca Jan 26, 2025
f9c1ed3
rename of the job name
Michal-Ploszczyca Jan 26, 2025
aa37377
add install dependencies command to style job
Michal-Ploszczyca Jan 26, 2025
ce74b6e
Merge pull request #9 from Michal-Ploszczyca/addtests
Michal-Ploszczyca Jan 26, 2025
76fb86e
check CI/CD to fail
Michal-Ploszczyca Jan 28, 2025
1d768ac
check linitng workspace
Michal-Ploszczyca Jan 28, 2025
35ce494
fix
Michal-Ploszczyca Jan 28, 2025
06c2e24
fail security check of warnings
Michal-Ploszczyca Jan 28, 2025
0e23a4d
fix generateRandomSHA256Hash
Michal-Ploszczyca Jan 28, 2025
6caadc5
Merge pull request #10 from Michal-Ploszczyca/addtests
Michal-Ploszczyca Jan 28, 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
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@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: npm ci

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

style-check:
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: 18

- name: Install dependencies
run: npm ci

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

- name: Check 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 for Tests](https://github.com/Michal-Ploszczyca/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!

Michał's version of Boot.dev's Notely app
13 changes: 13 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginSecurity from "eslint-plugin-security";

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginSecurity.configs.recommended,
];
Loading