Skip to content

Commit

Permalink
Add validate workflow (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Corb3nik authored Oct 28, 2024
1 parent 403ec13 commit 297ea90
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 24 deletions.
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.

0 comments on commit 297ea90

Please sign in to comment.