Skip to content

Commit

Permalink
chore: Add GH Action to check that the demo projects compile correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
guilgaly committed Apr 15, 2024
1 parent 7471bc0 commit 8279688
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
JAVA_OPTS: "-Xmx4G"
SBT_OPTS: "-Dsbt.ci=true"
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'

- name: Build Java Maven
working-directory: java/maven
run: ./mvnw --batch-mode -Dstyle.color=always --no-transfer-progress test-compile

- name: Build Java Gradle
working-directory: java/gradle
run: ./gradlew gatlingClasses

- name: Build Kotlin Maven
working-directory: kotlin/maven
run: ./mvnw --batch-mode -Dstyle.color=always --no-transfer-progress test-compile

- name: Build Kotlin Gradle
working-directory: kotlin/gradle
run: ./gradlew gatlingClasses

- name: Build Scala sbt
working-directory: scala/sbt
run: sbt Gatling/compile

0 comments on commit 8279688

Please sign in to comment.