Skip to content

Commit

Permalink
Smithy4s Kinesis Client (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
etspaceman authored Feb 12, 2023
1 parent 4c2edbd commit 79170fa
Show file tree
Hide file tree
Showing 42 changed files with 1,937 additions and 258 deletions.
39 changes: 0 additions & 39 deletions .github/actions/upload-coverage/action.yml

This file was deleted.

37 changes: 14 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.10, 2.12.17, 3.2.2]
scala: [2.12.17, 3.2.2, 2.13.10]
java: [temurin@17]
project: [rootJVM]
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -73,12 +73,8 @@ jobs:
if: matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' headerCheckAll fmtCheck

- name: Test with coverage
if: matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest' && matrix.scala != '3.2.2'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' 'IT / dockerComposeUp' cov 'IT / dockerComposeDown' 'FunctionalTest / dockerComposeUp' 'FunctionalTest / test' 'FunctionalTest / dockerComposeDown'

- name: Test
if: matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest' && matrix.scala == '3.2.2'
if: matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' 'IT / dockerComposeUp' test 'IT / test' 'IT / dockerComposeDown' 'FunctionalTest / dockerComposeUp' 'FunctionalTest / test' 'FunctionalTest / dockerComposeDown'

- name: Check scalafix lints
Expand All @@ -93,18 +89,13 @@ jobs:
if: matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc

- name: Upload coverage
uses: ./.github/actions/upload-coverage
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: mkdir -p target shared/target kpl-ciris/target unidocs/target .js/target site/target kpl-tests/target kcl-localstack/target kpl/target kcl-logging-circe/target kcl-tests/target kcl-ciris/target kinesis-client-logging-circe/target shared-circe/target kpl-logging-circe/target kinesis-client/target .jvm/target kcl/target kpl-localstack/target .native/target kinesis-client-tests/target kcl-fs2/target shared-localstack/target aws-v1-localstack/target kinesis-client-localstack/target aws-v2-localstack/target shared-ciris/target kcl-http4s/target kcl-fs2-ciris/target compat/target project/target
run: mkdir -p smithy4s-client-tests/target/jvm-2.13 shared-ciris/target/jvm-3 aws-v1-localstack/target/jvm-2.12 kpl/target/jvm-3 target shared/target/jvm-2.13 kpl/target/jvm-2.12 kcl-ciris/target/jvm-3 kpl-ciris/target/jvm-2.13 kinesis-client-tests/target/jvm-2.12 kpl-ciris/target/jvm-2.12 smithy4s-client-localstack/target/jvm-3 smithy4s-client/target/jvm-3 unidocs/target/jvm-2.13 smithy4s-client-logging-circe/target/jvm-2.13 kcl-logging-circe/target/jvm-3 .js/target kcl-fs2-ciris/target/jvm-2.12 kinesis-client-logging-circe/target/jvm-3 aws-v1-localstack/target/jvm-3 kcl-tests/target/jvm-2.12 site/target/jvm-2.13 kinesis-client-localstack/target/jvm-3 shared/target/jvm-3 kpl-tests/target/jvm-2.13 kcl-localstack/target/jvm-2.13 kcl-fs2-ciris/target/jvm-3 kcl/target/jvm-3 kcl/target/jvm-2.12 unidocs/target/jvm-2.12 smithy4s-client-transformers/target/jvm-2.12 kpl-tests/target/jvm-3 shared-ciris/target/jvm-2.12 shared-localstack/target/jvm-2.12 kpl-tests/target/jvm-2.12 kcl-localstack/target/jvm-2.12 kpl/target/jvm-2.13 shared-circe/target/jvm-2.12 kcl-logging-circe/target/jvm-2.13 kinesis-client-tests/target/jvm-3 kcl-tests/target/jvm-2.13 kcl-ciris/target/jvm-2.13 kinesis-client-logging-circe/target/jvm-2.13 unidocs/target/jvm-3 compat/target/jvm-3 kinesis-client-logging-circe/target/jvm-2.12 shared-circe/target/jvm-2.13 kinesis-client/target/jvm-2.12 kpl-logging-circe/target/jvm-2.13 kcl-tests/target/jvm-3 aws-v2-localstack/target/jvm-3 kcl-http4s/target/jvm-2.12 aws-v2-localstack/target/jvm-2.12 kcl-logging-circe/target/jvm-2.12 kinesis-client/target/jvm-2.13 .jvm/target kcl/target/jvm-2.13 kpl-localstack/target/jvm-3 kpl-localstack/target/jvm-2.13 kcl-ciris/target/jvm-2.12 .native/target kinesis-client-tests/target/jvm-2.13 kcl-fs2/target/jvm-2.13 kcl-localstack/target/jvm-3 kcl-fs2/target/jvm-2.12 kinesis-client/target/jvm-3 shared-localstack/target/jvm-2.13 aws-v1-localstack/target/jvm-2.13 kinesis-client-localstack/target/jvm-2.13 kpl-logging-circe/target/jvm-3 smithy4s-client-localstack/target/jvm-2.13 aws-v2-localstack/target/jvm-2.13 kpl-logging-circe/target/jvm-2.12 kcl-fs2/target/jvm-3 shared/target/jvm-2.12 smithy4s-client-tests/target/jvm-3 shared-circe/target/jvm-3 shared-ciris/target/jvm-2.13 shared-localstack/target/jvm-3 compat/target/jvm-2.12 kpl-ciris/target/jvm-3 smithy4s-client/target/jvm-2.13 kpl-localstack/target/jvm-2.12 smithy4s-client-logging-circe/target/jvm-3 kcl-http4s/target/jvm-2.13 kinesis-client-localstack/target/jvm-2.12 kcl-fs2-ciris/target/jvm-2.13 kcl-http4s/target/jvm-3 compat/target/jvm-2.13 project/target

- name: Compress target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: tar cf targets.tar target shared/target kpl-ciris/target unidocs/target .js/target site/target kpl-tests/target kcl-localstack/target kpl/target kcl-logging-circe/target kcl-tests/target kcl-ciris/target kinesis-client-logging-circe/target shared-circe/target kpl-logging-circe/target kinesis-client/target .jvm/target kcl/target kpl-localstack/target .native/target kinesis-client-tests/target kcl-fs2/target shared-localstack/target aws-v1-localstack/target kinesis-client-localstack/target aws-v2-localstack/target shared-ciris/target kcl-http4s/target kcl-fs2-ciris/target compat/target project/target
run: tar cf targets.tar smithy4s-client-tests/target/jvm-2.13 shared-ciris/target/jvm-3 aws-v1-localstack/target/jvm-2.12 kpl/target/jvm-3 target shared/target/jvm-2.13 kpl/target/jvm-2.12 kcl-ciris/target/jvm-3 kpl-ciris/target/jvm-2.13 kinesis-client-tests/target/jvm-2.12 kpl-ciris/target/jvm-2.12 smithy4s-client-localstack/target/jvm-3 smithy4s-client/target/jvm-3 unidocs/target/jvm-2.13 smithy4s-client-logging-circe/target/jvm-2.13 kcl-logging-circe/target/jvm-3 .js/target kcl-fs2-ciris/target/jvm-2.12 kinesis-client-logging-circe/target/jvm-3 aws-v1-localstack/target/jvm-3 kcl-tests/target/jvm-2.12 site/target/jvm-2.13 kinesis-client-localstack/target/jvm-3 shared/target/jvm-3 kpl-tests/target/jvm-2.13 kcl-localstack/target/jvm-2.13 kcl-fs2-ciris/target/jvm-3 kcl/target/jvm-3 kcl/target/jvm-2.12 unidocs/target/jvm-2.12 smithy4s-client-transformers/target/jvm-2.12 kpl-tests/target/jvm-3 shared-ciris/target/jvm-2.12 shared-localstack/target/jvm-2.12 kpl-tests/target/jvm-2.12 kcl-localstack/target/jvm-2.12 kpl/target/jvm-2.13 shared-circe/target/jvm-2.12 kcl-logging-circe/target/jvm-2.13 kinesis-client-tests/target/jvm-3 kcl-tests/target/jvm-2.13 kcl-ciris/target/jvm-2.13 kinesis-client-logging-circe/target/jvm-2.13 unidocs/target/jvm-3 compat/target/jvm-3 kinesis-client-logging-circe/target/jvm-2.12 shared-circe/target/jvm-2.13 kinesis-client/target/jvm-2.12 kpl-logging-circe/target/jvm-2.13 kcl-tests/target/jvm-3 aws-v2-localstack/target/jvm-3 kcl-http4s/target/jvm-2.12 aws-v2-localstack/target/jvm-2.12 kcl-logging-circe/target/jvm-2.12 kinesis-client/target/jvm-2.13 .jvm/target kcl/target/jvm-2.13 kpl-localstack/target/jvm-3 kpl-localstack/target/jvm-2.13 kcl-ciris/target/jvm-2.12 .native/target kinesis-client-tests/target/jvm-2.13 kcl-fs2/target/jvm-2.13 kcl-localstack/target/jvm-3 kcl-fs2/target/jvm-2.12 kinesis-client/target/jvm-3 shared-localstack/target/jvm-2.13 aws-v1-localstack/target/jvm-2.13 kinesis-client-localstack/target/jvm-2.13 kpl-logging-circe/target/jvm-3 smithy4s-client-localstack/target/jvm-2.13 aws-v2-localstack/target/jvm-2.13 kpl-logging-circe/target/jvm-2.12 kcl-fs2/target/jvm-3 shared/target/jvm-2.12 smithy4s-client-tests/target/jvm-3 shared-circe/target/jvm-3 shared-ciris/target/jvm-2.13 shared-localstack/target/jvm-3 compat/target/jvm-2.12 kpl-ciris/target/jvm-3 smithy4s-client/target/jvm-2.13 kpl-localstack/target/jvm-2.12 smithy4s-client-logging-circe/target/jvm-3 kcl-http4s/target/jvm-2.13 kinesis-client-localstack/target/jvm-2.12 kcl-fs2-ciris/target/jvm-2.13 kcl-http4s/target/jvm-3 compat/target/jvm-2.13 project/target

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
Expand Down Expand Up @@ -157,32 +148,32 @@ jobs:
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: Download target directories (2.13.10, rootJVM)
- name: Download target directories (2.12.17, rootJVM)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.10-rootJVM
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12.17-rootJVM

- name: Inflate target directories (2.13.10, rootJVM)
- name: Inflate target directories (2.12.17, rootJVM)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.12.17, rootJVM)
- name: Download target directories (3.2.2, rootJVM)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12.17-rootJVM
name: target-${{ matrix.os }}-${{ matrix.java }}-3.2.2-rootJVM

- name: Inflate target directories (2.12.17, rootJVM)
- name: Inflate target directories (3.2.2, rootJVM)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (3.2.2, rootJVM)
- name: Download target directories (2.13.10, rootJVM)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-3.2.2-rootJVM
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.10-rootJVM

- name: Inflate target directories (3.2.2, rootJVM)
- name: Inflate target directories (2.13.10, rootJVM)
run: |
tar xf targets.tar
rm targets.tar
Expand Down Expand Up @@ -251,5 +242,5 @@ jobs:
uses: peaceiris/actions-gh-pages@v3.9.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site/target/docs/site
publish_dir: site/target/jvm-2.13/docs/site
keep_files: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ docker/image/lib/*.jar
**/metals.sbt
.smithy.lsp.log
!/**/.gitkeep
.sbt/
3 changes: 2 additions & 1 deletion .jvmopts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-Xmx4G
-Xmx6G
-Xss4M
-XX:+UseG1GC
-XX:+UseStringDeduplication
Loading

0 comments on commit 79170fa

Please sign in to comment.