Merge pull request #162 from ably/update-readme #511
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
name: Integration Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
deployments: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 16 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: "16" | |
distribution: "adopt" | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots verify -Dmaven.javadoc.skip=true | |
- name: Build docs | |
uses: docker://sphinxdoc/sphinx:4.0.2 | |
with: | |
args: "sphinx-build -b html -C -D project=kafka-connect-ably target/docs target/components/packages" | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-region: eu-west-2 | |
role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK}}:role/ably-sdk-builds-kafka-connect-ably | |
role-session-name: "${{ github.run_id }}-${{ github.run_number }}" | |
- name: Upload Confluent ZIP archive | |
uses: ably/sdk-upload-action@v1 | |
with: | |
sourcePath: target/components/packages | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
artifactName: kafka-connect-ably | |
- name: Upload MSK Plugin ZIP archive | |
uses: ably/sdk-upload-action@v1 | |
with: | |
sourcePath: target/kafka-connect-ably-msk-plugin | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
artifactName: kafka-connect-ably-msk-plugin |