-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.44 KB
/
it.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
49
50
51
52
53
name: Oss Service Integration Tests
on:
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: it
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
java: [ '17','21' ]
services:
redis:
image: redis
ports:
- 6379:6379
env:
SERVER_PORT_NO: 8081
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B -P+it package -Djava.version=${{ matrix.java }} --file pom.xml
- name: Run AllInOne Application
uses: JarvusInnovations/background-action@v1
with:
working-directory: oss-server
wait-for: 2m
tail: true
run: java -jar target/oss-server-fat.jar --spring.profiles.active=oss-dev &
wait-on: http-get://localhost:${{ env.SERVER_PORT_NO }}/actuator/health
- name: Download ijhttp tools
run: |-
curl -f -L -o ijhttp.zip "https://jb.gg/ijhttp/latest"
unzip ijhttp.zip
./ijhttp/ijhttp --version
- name: Execute HTTP requests
run: ./ijhttp/ijhttp oss-server/src/test/http/test.http oss-server/src/test/http/chunked.http