Skip to content

Commit

Permalink
feat: include web in unit-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrittner committed Aug 19, 2024
1 parent af9ce2d commit 4f70bca
Show file tree
Hide file tree
Showing 3 changed files with 10,906 additions and 8,360 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:
default: ""
type: string
jobs:
unit-test:
name: Unit Tests
python-unit-test:
name: Python Unit Tests
runs-on: ${{ inputs.os }}
steps:
- name: Checkout code
Expand All @@ -39,3 +39,28 @@ jobs:
run: poetry run ruff check
- name: Run unit tests
run: poetry run pytest tests/
web-unit-test:
name: Web Unit Tests
runs-on: ${{ inputs.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Setup pnpm
uses: pnpm/[email protected]
- name: Install dependencies
run: cd web && pnpm install
- name: Run linter
run: cd web && pnpm lint
- name: Run prettier check
run: cd web && pnpm prettier:check
- name: Run build
run: cd web && pnpm build
- name: Run unit tests
run: cd web && pnpm test
119 changes: 60 additions & 59 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,62 @@
{
"name": "web",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"prettier": "prettier --write .",
"test": "jest"
},
"dependencies": {
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-toolbar": "^1.1.0",
"@radix-ui/themes": "^3.1.1",
"@tanstack/react-query": "^5.51.16",
"axios": "^1.7.2",
"camelcase": "^8.0.0",
"camelcase-keys": "^9.1.3",
"dagre": "^0.8.5",
"immer": "^10.1.1",
"lodash": "^4.17.21",
"next": "14.2.5",
"react": "^18",
"react-code-blocks": "^0.1.6",
"react-dom": "^18",
"react-toastify": "^10.0.5",
"reactflow": "^11.11.4",
"snakecase-keys": "^8.0.1",
"ts-node": "^10.9.2",
"type-fest": "^4.23.0",
"use-immer": "^0.10.0",
"uuid": "^10.0.0",
"zod": "^3.22.5",
"zustand": "^4.5.4"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/dagre": "^0.7.52",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.17.7",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/uuid": "^10.0.0",
"eslint": "^8",
"eslint-config-next": "14.2.5",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.1",
"ts-jest": "^29.2.4",
"typescript": "^5"
}
"name": "web",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"prettier": "prettier --write .",
"prettier:check": "prettier --check .",
"test": "jest"
},
"dependencies": {
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-toolbar": "^1.1.0",
"@radix-ui/themes": "^3.1.1",
"@tanstack/react-query": "^5.51.16",
"axios": "^1.7.2",
"camelcase": "^8.0.0",
"camelcase-keys": "^9.1.3",
"dagre": "^0.8.5",
"immer": "^10.1.1",
"lodash": "^4.17.21",
"next": "14.2.5",
"react": "^18",
"react-code-blocks": "^0.1.6",
"react-dom": "^18",
"react-toastify": "^10.0.5",
"reactflow": "^11.11.4",
"snakecase-keys": "^8.0.1",
"ts-node": "^10.9.2",
"type-fest": "^4.23.0",
"use-immer": "^0.10.0",
"uuid": "^10.0.0",
"zod": "^3.22.5",
"zustand": "^4.5.4"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/dagre": "^0.7.52",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.17.7",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/uuid": "^10.0.0",
"eslint": "^8",
"eslint-config-next": "14.2.5",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.1",
"ts-jest": "^29.2.4",
"typescript": "^5"
}
}
Loading

0 comments on commit 4f70bca

Please sign in to comment.