Skip to content

ci: fix markdown auto-fix workflow and add step ID #12

ci: fix markdown auto-fix workflow and add step ID

ci: fix markdown auto-fix workflow and add step ID #12

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
markdown-lint:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: markdownlint-cli2-action
id: markdownlint
uses: DavidAnson/markdownlint-cli2-action@v18.0.0
with:
fix: true
- name: Commit fixes
if: steps.markdownlint.outputs.fixed > 0
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am "docs: fix markdown formatting"
git push
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Run tests
run: bun test
- name: Run linting
run: bun run lint