diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d9cec2f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: + - "master" + pull_request: + branches: + - "master" + workflow_dispatch: + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + distribution: "adopt" + java-version: "8" + - name: Pull Docker containers + run: | + set -e + nohup docker pull localstack/localstack-light > /dev/null & + nohup docker pull lambci/lambda:java8 > /dev/null & + nohup docker pull localstack/localstack > /dev/null & + - name: Compile Tests + run: | + set -e + make compile + MVN_TEST_ARGS="-q -DskipTests" make test + - name: Thundra Maven Test Instrumentation Action + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + uses: thundra-io/thundra-maven-test-action@v1 + with: + apikey: ${{ secrets.THUNDRA_DEMO_ACCOUNT_LOCALSTACK_APIKEY }} + project_id: ${{ secrets.THUNDRA_DEMO_ACCOUNT_LOCALSTACK_PROJECTID }} + - name: Run Tests + run: make test + env: + THUNDRA_AGENT_REPORT_REST_BASEURL: https://collector.thundra.us/v1 diff --git a/README.md b/README.md index 1e11cca..9d95241 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Build Status](https://travis-ci.com/localstack/localstack-java-utils.svg)](https://travis-ci.com/localstack/localstack-java-utils) [![Maven Central](https://img.shields.io/maven-central/v/cloud.localstack/localstack-utils)](https://mvnrepository.com/artifact/cloud.localstack/localstack-utils) - +[![Thundra Foresight](https://thundra-assets-prod.s3.us-west-2.amazonaws.com/images/badges/thundra-foresight-badge-enabled.svg)](https://foresight.thundra.live/testRuns/71e743a6-b8d5-4d55-aa89-5299f3c3d08e) # LocalStack Java Utils Java utilities and JUnit integration for [LocalStack](https://github.com/localstack/localstack).