diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..304e232 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + node: [18, 20, 22] + include: + # render.mjs has Windows-specific path and browser handling + - os: windows-latest + node: 22 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: npm + - run: npm ci + - run: npm test diff --git a/README.md b/README.md index bbcfe7b..13993c7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # learn +[![Test](https://github.com/talayash/learn/actions/workflows/test.yml/badge.svg)](https://github.com/talayash/learn/actions/workflows/test.yml) + **Type `/learn` after you build something, and get a visual lesson about what you just did.** A Claude Code plugin. It reads your session and your git diff, then opens a page in your browser that explains your work: the architecture, how a request moves through it, the design patterns you used (with links to the exact lines), your database and cache choices, the words you should know, and a short quiz.