Skip to content

CI/CD automation lab project using GitHub Actions — implements linting, formatting, unit testing with coverage, artifact builds, GitHub Pages deployment, scheduled security audits, and reusable composite actions.

Notifications You must be signed in to change notification settings

LoicBelmond/CI-action-lab

Repository files navigation

CSP451 Student Seed (Weeks 1–3) Starter repository for CheckPoints 1–3. Use this to begin your assignments.

Status Badges CI: CI Pages: Deploy Coverage: codecov Replace OWNER/REPO with your GitHub path after your first push.

Project Structure src/ — HTML/CSS/JS scaffold tests/ — Jest unit/integration tests (80%+ coverage threshold) scripts/ — build and smoke test scripts .github/workflows/ — CI, Pages deploy, scheduled audit .github/actions/setup-project — reusable composite action Week 1 Tasks Create at least 5 meaningful commits using conventional prefixes (feat, fix, docs, style, refactor). Add .gitignore, update README, and ensure repository has necessary files (index.html, style.css, script.js equivalent is in src/). Create feature branch feature/add-about-page, add about.html, open PR, then merge. Week 2 Tasks Practice branching strategies, open PRs, request reviews, resolve conflicts. Week 3 Tasks Ensure CI passes: lint, test with coverage >= 80%, and build. Pages deployment on pushes to main. Scheduled dependency audit opens issue for high/critical vulnerabilities. Local Development

Use Node 18

nvm use || nvm install

Install dependencies

npm ci

Run

npm start

Lint & format

npm run lint npm run format

Test (with coverage)

npm test

Build static site to dist/

npm run build GitHub Pages After first push to main, enable Pages: Settings > Pages > Source: GitHub Actions. The workflow in .github/workflows/pages.yml deploys dist/. Codecov Optional: Add repository to Codecov and set CODECOV_TOKEN secret if private. License MIT

See WORKFLOWS.md for detailed CI/CD documentation.

About

CI/CD automation lab project using GitHub Actions — implements linting, formatting, unit testing with coverage, artifact builds, GitHub Pages deployment, scheduled security audits, and reusable composite actions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published