Skip to content

Commit 7d62332

Browse files
authored
add Github Actions CI config with Thundra integration (#69)
1 parent 9dbb8d9 commit 7d62332

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "master"
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up JDK 8
19+
uses: actions/setup-java@v2
20+
with:
21+
distribution: "adopt"
22+
java-version: "8"
23+
- name: Pull Docker containers
24+
run: |
25+
set -e
26+
nohup docker pull localstack/localstack-light > /dev/null &
27+
nohup docker pull lambci/lambda:java8 > /dev/null &
28+
nohup docker pull localstack/localstack > /dev/null &
29+
- name: Compile Tests
30+
run: |
31+
set -e
32+
make compile
33+
MVN_TEST_ARGS="-q -DskipTests" make test
34+
- name: Thundra Maven Test Instrumentation Action
35+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
36+
uses: thundra-io/thundra-maven-test-action@v1
37+
with:
38+
apikey: ${{ secrets.THUNDRA_DEMO_ACCOUNT_LOCALSTACK_APIKEY }}
39+
project_id: ${{ secrets.THUNDRA_DEMO_ACCOUNT_LOCALSTACK_PROJECTID }}
40+
- name: Run Tests
41+
run: make test
42+
env:
43+
THUNDRA_AGENT_REPORT_REST_BASEURL: https://collector.thundra.us/v1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Build Status](https://travis-ci.com/localstack/localstack-java-utils.svg)](https://travis-ci.com/localstack/localstack-java-utils)
22
[![Maven Central](https://img.shields.io/maven-central/v/cloud.localstack/localstack-utils)](https://mvnrepository.com/artifact/cloud.localstack/localstack-utils)
3-
3+
[![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)
44
# LocalStack Java Utils
55

66
Java utilities and JUnit integration for [LocalStack](https://github.com/localstack/localstack).

0 commit comments

Comments
 (0)