Skip to content

Commit

Permalink
Add build tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Nov 24, 2023
1 parent 610ea18 commit df2b0d2
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,44 @@ on:
branches: [ main ]

jobs:
build:
build-jvm:
# prevent from running on forks
if: github.repository_owner == 'restatedev'
runs-on: ubuntu-latest
strategy:
matrix:
jvm-version: [ 17 ]

steps:
- uses: actions/checkout@v3

- name: Use JVM ${{ matrix.jvm-version }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jvm-version }}

- name: Test jvm/java-blocking-http
uses: gradle/gradle-build-action@v2
with:
arguments: check
build-root-directory: jvm/java-blocking-http
- name: Test jvm/java-blocking-lambda
uses: gradle/gradle-build-action@v2
with:
arguments: check
build-root-directory: jvm/java-blocking-lambda
- name: Test jvm/kotlin-http
uses: gradle/gradle-build-action@v2
with:
arguments: check
build-root-directory: jvm/kotlin-http
- name: Test jvm/kotlin-lambda
uses: gradle/gradle-build-action@v2
with:
arguments: check
build-root-directory: jvm/kotlin-lambda
build-ts:
# prevent from running on forks
if: github.repository_owner == 'restatedev'
runs-on: ubuntu-latest
Expand All @@ -17,11 +54,13 @@ jobs:

steps:
- uses: actions/checkout@v3

- uses: bufbuild/buf-setup-action@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'

- run: npm ci --prefix typescript
- run: npm run --prefix typescript -ws verify

0 comments on commit df2b0d2

Please sign in to comment.