forked from localstack/localstack-java-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.23 KB
/
build.yml
File metadata and controls
43 lines (41 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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