-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI checks in GitHub actions #2813
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
cf596b4
CI checks in GitHub actions
ennru 5b9ce5a
More shallow checkout
ennru db45172
quoting
ennru 3849bf4
Matrix for connectors?
ennru 225acc1
Remove env
ennru e78bdd1
fetch whole repo to detect changes from master
ennru 6e1e16f
List all connectors
ennru 2a31c25
fail slow
ennru e6a4276
collapse into single file
ennru e43fbd0
use coursier/setup-action; validate links
ennru 2d437fb
Coursier setup in link-validator
ennru 545a385
pin setup-action to 1.1.2
ennru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,156 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
tags-ignore: | ||
- v* | ||
|
||
concurrency: | ||
# Only run once for latest commit per ref and cancel other (previous) runs. | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
style-compile-mima: | ||
name: Compile, Code Style, Binary Compatibility | ||
runs-on: ubuntu-20.04 | ||
env: | ||
JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos | ||
fetch-depth: 100 | ||
|
||
- name: Fetch tags | ||
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/* | ||
|
||
- name: Set up JDK 8 | ||
uses: coursier/setup-action@v1 | ||
with: | ||
jvm: adopt:8 | ||
|
||
- name: Cache Coursier cache | ||
uses: coursier/[email protected] | ||
|
||
- name: "Code style, compile tests, MiMa. Run locally with: sbt +~2.13 \"verifyCodeStyle; Test/compile; mimaReportBinaryIssues\"" | ||
run: sbt +~2.13 "verifyCodeStyle; Test/compile; mimaReportBinaryIssues" | ||
|
||
documentation: | ||
name: ScalaDoc, Documentation with Paradox | ||
runs-on: ubuntu-20.04 | ||
env: | ||
JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos | ||
fetch-depth: 100 | ||
|
||
- name: Fetch tags | ||
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/* | ||
|
||
- name: Set up JDK 11 | ||
uses: coursier/setup-action@v1 | ||
with: | ||
jvm: adopt:11 | ||
|
||
- name: Cache Coursier cache | ||
uses: coursier/[email protected] | ||
|
||
- name: "Create all API docs and create site with Paradox" | ||
run: sbt docs/makeSite | ||
|
||
- name: Run Link Validator | ||
run: cs launch net.runne::site-link-validator:0.2.2 -- scripts/link-validator.conf | ||
|
||
connectors: | ||
needs: [style-compile-mima] | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { connector: amqp, pre_cmd: 'docker-compose up -d amqp' } | ||
- { connector: avroparquet } | ||
- { connector: awslambda } | ||
- { connector: aws-event-bridge, pre_cmd: 'docker-compose up -d amazoneventbridge' } | ||
- { connector: azure-storage-queue } | ||
- { connector: cassandra, pre_cmd: 'docker-compose up -d cassandra' } | ||
- { connector: couchbase, pre_cmd: 'docker-compose up -d couchbase_prep' } | ||
- { connector: csv } | ||
- { connector: dynamodb, pre_cmd: 'docker-compose up -d dynamodb' } | ||
- { connector: elasticsearch, pre_cmd: 'docker-compose up -d elasticsearch6 elasticsearch7' } | ||
- { connector: file } | ||
- { connector: ftp, pre_cmd: 'docker-compose up -d ftp sftp squid' } | ||
- { connector: geode, pre_cmd: 'docker-compose up -d geode' } | ||
- { connector: google-cloud-bigquery } | ||
- { connector: google-cloud-bigquery-storage } | ||
- { connector: google-cloud-pub-sub, pre_cmd: 'docker-compose up -d gcloud-pubsub-emulator_prep' } | ||
- { connector: google-cloud-pub-sub-grpc, pre_cmd: 'docker-compose up -d gcloud-pubsub-emulator_prep' } | ||
- { connector: google-cloud-storage } | ||
- { connector: google-common } | ||
- { connector: google-fcm } | ||
# hbase disabled until we resolve why new docker image fails our build: https://github.com/akka/alpakka/issues/2185 | ||
# - { connector: hbase, pre_cmd: 'docker-compose up -d hbase' } | ||
- { connector: hdfs, pre_cmd: 'file ${HOME}/.cache/coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-kernel_2.13/2.0.0/cats-kernel_2.13-2.0.0.jar' } | ||
- { connector: huawei-push-kit } | ||
- { connector: influxdb, pre_cmd: 'docker-compose up -d influxdb' } | ||
- { connector: ironmq, pre_cmd: 'docker-compose up -d ironauth ironmq' } | ||
- { connector: jms, pre_cmd: 'docker-compose up -d ibmmq' } | ||
- { connector: json-streaming } | ||
- { connector: kinesis } | ||
- { connector: kudu, pre_cmd: 'docker-compose up -d kudu-master-data kudu-tserver-data kudu-master kudu-tserver' } | ||
- { connector: mongodb, pre_cmd: 'docker-compose up -d mongo' } | ||
- { connector: mqtt, pre_cmd: 'docker-compose up -d mqtt' } | ||
- { connector: mqtt-streaming, pre_cmd: 'docker-compose up -d mqtt' } | ||
- { connector: orientdb, pre_cmd: 'docker-compose up -d orientdb' } | ||
- { connector: pravega, pre_cmd: 'docker-compose up -d pravega'} | ||
- { connector: reference } | ||
- { connector: s3, pre_cmd: 'docker-compose up -d minio_prep' } | ||
- { connector: spring-web } | ||
- { connector: simple-codecs } | ||
- { connector: slick } | ||
- { connector: sns, pre_cmd: 'docker-compose up -d amazonsns' } | ||
- { connector: solr } | ||
- { connector: sqs, pre_cmd: 'docker-compose up -d elasticmq' } | ||
- { connector: sse } | ||
- { connector: text } | ||
- { connector: udp } | ||
- { connector: unix-domain-socket } | ||
- { connector: xml } | ||
|
||
env: | ||
JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: # test-if-changed compares with master branch | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 8 | ||
uses: coursier/setup-action@v1 | ||
with: | ||
jvm: adopt:8 | ||
|
||
- name: Cache Coursier cache | ||
uses: coursier/[email protected] | ||
|
||
- name: ${{ matrix.connector }} | ||
env: | ||
CONNECTOR: ${{ matrix.connector }} | ||
PRE_CMD: ${{ matrix.pre_cmd }} | ||
run: |- | ||
./scripts/gh-test-if-changed.sh "${CONNECTOR}" "${PRE_CMD:=echo NOOP}" "${CONNECTOR}/test" | ||
|
||
- name: Print logs on failure | ||
if: ${{ failure() }} | ||
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, interesting. I will add it to Lagom as well.