-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (43 loc) · 1.04 KB
/
gatling-tests.yml
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
44
45
46
47
48
name: gatling-tests
on:
push:
paths:
- "gatling-tests/**"
branches: [main]
pull_request:
paths:
- "gatling-tests/**"
types:
- opened
- synchronize
- reopened
jobs:
build:
name: Run Unit & Integration Tests with jdk ${{ matrix.java }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: "gatling-tests"
strategy:
matrix:
java: ["21"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK ${{ matrix.java }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: "temurin"
cache: "maven"
- name: Start up softwares via Docker Compose
run: |
pwd
cd ..
cd deployment
docker compose up -d
sleep 240
docker ps -a
- name: Build and analyze
run: ./mvnw clean gatling:test