Skip to content

Commit

Permalink
add tests (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
canoypa authored Dec 12, 2023
1 parent a0abe08 commit b305b5f
Show file tree
Hide file tree
Showing 9 changed files with 947 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

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

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
run_install: true
- name: Run tests
run: pnpm test
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"description": "Text-based GitHub Readme Stats",
"version": "0.1.0",
"license": "MIT",
"packageManager": "[email protected]",
"scripts": {
"test": "vitest",
"build": "esbuild src/index.ts --platform=node --target=node20 --bundle --sourcemap --outfile=dist/index.js"
},
"dependencies": {
Expand All @@ -16,6 +18,7 @@
"@octokit/graphql-schema": "^14.45.1",
"@types/node": "^20.10.4",
"esbuild": "^0.19.8",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"vitest": "^1.0.4"
}
}
Loading

0 comments on commit b305b5f

Please sign in to comment.