Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validate workflow #21

Merged
merged 1 commit into from
Oct 28, 2024
Merged
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
39 changes: 39 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Validate

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

env:
NODE_VERSION: 20
PNPM_VERSION: 9

jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false

- name: Install dependencies
run: pnpm install

- name: Typecheck
run: pnpm typecheck

- name: Build
run: pnpm build
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"shared": "workspace:*"
},
"devDependencies": {
"@caido/sdk-backend": "0.41.0"
"@caido/sdk-backend": "0.42.0"
}
}
2 changes: 1 addition & 1 deletion packages/backend/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createHash } from 'crypto';
import { createHash } from "crypto";

export function sha256Hash(text: string): string {
return createHash('sha256').update(text).digest('hex');
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@caido/primevue": "0.1.1",
"@caido/sdk-frontend": "0.41.0",
"@caido/sdk-frontend": "0.42.0",
"@fortawesome/fontawesome-free": "6.6.0",
"@vueuse/core": "10.11.1",
"pinia": "2.2.1",
Expand All @@ -20,7 +20,7 @@
"vue": "3.4.37"
},
"devDependencies": {
"@caido/sdk-backend": "0.41.0",
"@caido/sdk-backend": "0.42.0",
"@caido/tailwindcss": "0.0.1",
"@codemirror/view": "6.28.1",
"@vitejs/plugin-vue": "5.1.2",
Expand Down
40 changes: 20 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.