Skip to content
Merged

Ci #16

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Node.js CI

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: write

jobs:
lint_test:

runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn run format
- run: yarn run lint
- run: yarn run test
- run: yarn run updateDoc
- name: Commit README.md if updated
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.node-version == '22.x'
run: |
git diff --quiet README.md || {
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "docs: update README.md"
git push
}

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
"license": "MIT",
"scripts": {
"test": "tsx src/index.ts",
"eslint": "eslint src --fix",
"lint": "eslint src --fix",
"updateDoc": "cat README_BASE.md Questions.yaml README_FOOTER.md > README.md",
"format": "prettier --write '{src,tests}/**/*.ts'"
},
"dependencies": {
"@graphai/llm_agents": "^0.0.18",
"dotenv": "^16.4.5",
"graphai": "^0.5.8",
"yaml": "^2.5.1"
"yaml": "^2.8.2"
},
"devDependencies": {
"@graphai/vanilla": "^0.0.14",
"@types/node": "^22.5.4",
"eslint": "^9.10.0",
"prettier": "^3.3.3",
"prettier": "^3.8.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.19.0",
"typescript": "^5.5.4",
"typescript-eslint": "^8.4.0"
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.55.0"
}
}
Loading