-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 847 Bytes
/
ci.yaml
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
name: Micronaut CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout git repository
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode install
- name: Run tests with Maven
run: mvn --batch-mode test
- name: Start application for load Test
run: java -jar target/training-service-0.1.jar &
- name: Run local k6 test
uses: grafana/[email protected]
with:
filename: loadTest.js
flags: --out json=results.json
- name: Upload performance test results
uses: actions/upload-artifact@v4
with:
name: k6-report
path: results.json