Skip to content

ci: simplify PR report workflow to use agentnote action #55

ci: simplify PR report workflow to use agentnote action

ci: simplify PR report workflow to use agentnote action #55

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm -w packages/cli run lint
- run: npm -w packages/cli run typecheck
test:
name: Test(Node ${{ matrix.node-version }})
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm -w packages/cli run build
- run: npm -w packages/cli test
- name: Smoke test
run: node packages/cli/dist/cli.js version
action:
name: Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: test -f packages/action/dist/index.js