-
Notifications
You must be signed in to change notification settings - Fork 90
Validate all example and sample applications #1059
Changes from all commits
27f2576
cfe1eff
cda7898
a07796d
96b20f2
d77e4cc
6826320
637ca49
a5f02ed
2b356c4
0a60944
25b5841
bfc86f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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/checkout@v2.3.3 | ||
| - uses: actions/checkout@v2 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you tested this workflow in isolation to verify this change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have not. How can I do that?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can hack the workflow in a branch to be triggered on |
||
| - run: | | ||
| git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | ||
| git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| name: Build and Test | ||
|
|
||
| on: | ||
| # Trigger the workflow on push or pull request, | ||
| # push only for the main branch | ||
|
|
@@ -7,13 +9,11 @@ on: | |
| - main | ||
| pull_request: | ||
|
|
||
|
|
||
| name: Build and Test | ||
| jobs: | ||
| build-and-test-docs: | ||
| runs-on: ubuntu-latest | ||
| runs-on: ubuntu-20.04 | ||
| steps: | ||
| - uses: actions/checkout@v2.3.3 | ||
| - uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Build documentation | ||
|
|
@@ -23,23 +23,62 @@ jobs: | |
| cd docs | ||
| make html-author-mode | ||
| grep -r "page unresolved" target/staging/docs/ && exit 1 || echo 'ok' | ||
| build-and-test-scala: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| build-and-test-core: | ||
| name: "Cloudflow Core" | ||
| runs-on: ubuntu-20.04 | ||
| strategy: | ||
| matrix: | ||
| java: [ '8', '11', '13' ] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Setup environment | ||
| run: | | ||
| make -C .github/workflows/setup setup-local-all | ||
|
andreaTP marked this conversation as resolved.
|
||
| - uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Cache SBT and Coursier cache | ||
| uses: coursier/cache-action@v3 | ||
|
|
||
| - name: Scalafmt check | ||
| run: cd core && sbt "scalafmtCheckAll; scalafmtSbtCheck" | ||
|
|
||
| - name: build-and-test | ||
| env: | ||
| SBT_OPTS: -Xms512M -Xmx2048M -Xss2M -XX:MaxMetaspaceSize=1024M | ||
| run: | | ||
| export PATH="$HOME/opt/sbt/bin:$PATH" | ||
| export SBT_OPTS="-Xss256M" | ||
| cd scripts | ||
| ./build-all.sh +test | ||
| run: ./scripts/build-core.sh +test | ||
|
|
||
| build-and-test-sbt-examples: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Split into different jobs so that they can run independently. |
||
| name: "sbt samples" | ||
| runs-on: ubuntu-20.04 | ||
| strategy: | ||
| matrix: | ||
| java: [ '8' ] | ||
| steps: | ||
|
|
||
| - uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Cache SBT and Coursier cache | ||
| uses: coursier/cache-action@v3 | ||
|
|
||
| - name: test-sbt-examples | ||
| run: ./scripts/build-sbt-examples.sh test | ||
|
|
||
| build-and-test-mvn-examples: | ||
| name: "mvn samples" | ||
| runs-on: ubuntu-20.04 | ||
| strategy: | ||
| matrix: | ||
| java: [ '8' ] | ||
| steps: | ||
|
|
||
| - uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Cache SBT and Coursier cache | ||
| uses: coursier/cache-action@v3 | ||
|
|
||
| - name: test-maven-examples | ||
| run: ./scripts/build-mvn-examples.sh test | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sbt.version=1.4.9 |
Uh oh!
There was an error while loading. Please reload this page.