Skip to content

Commit df2b0d2

Browse files
Add build tests in CI
1 parent 610ea18 commit df2b0d2

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

.github/workflows/test.yml

+40-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,44 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
build:
10+
build-jvm:
11+
# prevent from running on forks
12+
if: github.repository_owner == 'restatedev'
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
jvm-version: [ 17 ]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Use JVM ${{ matrix.jvm-version }}
22+
uses: actions/setup-java@v3
23+
with:
24+
distribution: 'temurin'
25+
java-version: ${{ matrix.jvm-version }}
26+
27+
- name: Test jvm/java-blocking-http
28+
uses: gradle/gradle-build-action@v2
29+
with:
30+
arguments: check
31+
build-root-directory: jvm/java-blocking-http
32+
- name: Test jvm/java-blocking-lambda
33+
uses: gradle/gradle-build-action@v2
34+
with:
35+
arguments: check
36+
build-root-directory: jvm/java-blocking-lambda
37+
- name: Test jvm/kotlin-http
38+
uses: gradle/gradle-build-action@v2
39+
with:
40+
arguments: check
41+
build-root-directory: jvm/kotlin-http
42+
- name: Test jvm/kotlin-lambda
43+
uses: gradle/gradle-build-action@v2
44+
with:
45+
arguments: check
46+
build-root-directory: jvm/kotlin-lambda
47+
build-ts:
1148
# prevent from running on forks
1249
if: github.repository_owner == 'restatedev'
1350
runs-on: ubuntu-latest
@@ -17,11 +54,13 @@ jobs:
1754

1855
steps:
1956
- uses: actions/checkout@v3
57+
2058
- uses: bufbuild/buf-setup-action@v1
2159
- name: Use Node.js ${{ matrix.node-version }}
2260
uses: actions/setup-node@v3
2361
with:
2462
node-version: ${{ matrix.node-version }}
2563
registry-url: 'https://registry.npmjs.org'
64+
2665
- run: npm ci --prefix typescript
2766
- run: npm run --prefix typescript -ws verify

0 commit comments

Comments
 (0)