This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate all example and sample applications (#1059)
* Run validations for all Maven and sbt samples * Fallback to dynver when CLOUDFLOW_VERSION env var is set but empty * Remove duplicated jobs in GH actions * Read project version from a file * Split testing core, sbt samples, and maven samples in distinct jobs * Fix sbt samples compilation issues * Update scala-maven-plugin * Do not avoid fail-fast strategy for gh action jobs * Use ubuntu-20.04 instead of latest * Do not use a file to store the project version * Only run scalafmt if there is a configuration file for the sample * Initialize sbt when getting CF version for Maven samples * Test examples only on Java 8 Co-authored-by: Andrea Peruffo <[email protected]>
- Loading branch information
Showing
77 changed files
with
516 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,34 +2,29 @@ name: Build PRs | |
on: | ||
pull_request: | ||
jobs: | ||
build-all: | ||
runs-on: ubuntu-latest | ||
run-scripted-tests: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
java: [ '8', '11', '13' ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup java | ||
uses: joschi/setup-jdk@v2 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
architecture: x64 | ||
|
||
- name: Cache SBT and Coursier cache | ||
uses: coursier/cache-action@v3 | ||
- name: Scalafmt check | ||
run: | | ||
cd core | ||
sbt "scalafmtCheckAll; scalafmtSbtCheck" | ||
- name: Build documentation | ||
run: | | ||
sudo snap install yq | ||
cd docs | ||
make html-author-mode | ||
- name: Run integration tests | ||
|
||
- name: Run scripted tests | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Cloudflow CI" | ||
cd core | ||
sbt -mem 2048 +test | ||
sbt -mem 2048 +publishLocal cloudflow-sbt-plugin/scripted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,9 @@ on: | |
- main | ||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | ||
git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ples/connected-car-cluster-sharding/akka-connected-car-streamlet/project/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.4.9 |
30 changes: 16 additions & 14 deletions
30
...g/akka-connected-car-streamlet/src/main/scala/connectedcar/actors/ConnectedCarActor.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 13 additions & 24 deletions
37
...nnected-car-streamlet/src/test/scala/connectedcar/streamlet/ConnectedCarClusterTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/connected-car-cluster-sharding/project/cloudflow-plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.