Skip to content

Commit e35bf29

Browse files
committed
fix: replace github action from branch
1 parent 24aa88b commit e35bf29

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Chat Types PR Validation
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- 'types/codegen/schema/chatTypes.json'
9+
workflow_dispatch:
10+
11+
jobs:
12+
validate-pr:
13+
name: Validate PR with chatTypes.json changes
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20.x'
24+
#should we cache: 'npm'
25+
26+
# - name: Install root dependencies
27+
# working-directory: .
28+
# run: npm install
29+
30+
- name: Install codegen dependencies
31+
working-directory: types/codegen
32+
run: npm install
33+
34+
- name: Generate types
35+
working-directory: types/codegen
36+
run: npm run generate
37+
38+
- name: Build TypeScript
39+
working-directory: types/codegen/generated/typescript
40+
run: |
41+
npm i
42+
npm run build
43+
- name: Setup Java
44+
uses: actions/setup-java@v4
45+
with:
46+
distribution: 'corretto'
47+
java-version: '21'
48+
cache: 'maven'
49+
50+
- name: Build Java with Maven
51+
working-directory: types/codegen/generated/java
52+
run: |
53+
# Install the LSP4J dependency before compiling
54+
mvn dependency:get -Dartifact=org.eclipse.lsp4j:org.eclipse.lsp4j:0.22.0
55+
mvn clean compile -Djava.version=21

0 commit comments

Comments
 (0)