Skip to content

Merge pull request #4 from casantosmu/improves #8

Merge pull request #4 from casantosmu/improves

Merge pull request #4 from casantosmu/improves #8

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Run Prettier and MarkdownLint
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set Up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Run lint script
run: npm run lint
test-build:
name: Test build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Docker image
run: docker build -t code-notes .
- name: Build MkDocs site
run: docker run --rm -v $(pwd):/docs code-notes build --strict