Skip to content

Commit b64fc10

Browse files
committed
update ci
1 parent 1c3aa63 commit b64fc10

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
ruby -v
2727
bundle install
2828
yarn install
29+
cd site && yarn install && cd ..
2930
3031
- name: CSpell (Spellcheck)
3132
run: bin/spellcheck
@@ -147,7 +148,7 @@ jobs:
147148
# Install dependencies with the specific Rails version
148149
bundle install
149150
150-
- name: Run tests
151+
- name: Run Ruby tests
151152
run: bin/test
152153

153154
# Optional: Save coverage data as an artifact
@@ -158,3 +159,40 @@ jobs:
158159
name: coverage-ruby${{ matrix.ruby }}-rails${{ matrix.rails }}
159160
path: coverage/
160161
retention-days: 5
162+
163+
typescript:
164+
name: "TypeScript Tests"
165+
needs: [matrix]
166+
runs-on: ubuntu-22.04
167+
steps:
168+
- uses: actions/checkout@v4
169+
170+
- name: Setup Ruby
171+
uses: ruby/setup-ruby@v1
172+
with:
173+
ruby-version: "3.3.6"
174+
bundler-cache: true
175+
176+
- name: Setup Node.js
177+
uses: actions/setup-node@v4
178+
with:
179+
node-version: 20
180+
cache: 'yarn'
181+
cache-dependency-path: 'site/yarn.lock'
182+
183+
- name: Install dependencies
184+
run: |
185+
bundle install
186+
cd site && yarn install
187+
188+
- name: Export TypeScript types
189+
run: |
190+
ruby scripts/export_typescript_types.rb
191+
192+
- name: TypeScript type checking
193+
run: |
194+
cd site && npx tsc --noEmit
195+
196+
- name: Run TypeScript tests
197+
run: |
198+
cd site && yarn test

site/lib/log-generation/log-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22
// Auto-generated TypeScript definitions for LogStruct
3-
// Generated on 2025-03-06 15:19:34
3+
// Generated on 2025-03-06 15:32:01
44

55
// Enum types
66
export enum Source {

0 commit comments

Comments
 (0)