-
Notifications
You must be signed in to change notification settings - Fork 2
78 lines (67 loc) · 2.13 KB
/
pr.yml
File metadata and controls
78 lines (67 loc) · 2.13 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: PR Test
on:
pull_request:
branches:
- '**'
jobs:
unit-and-integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run unit tests
run: ./gradlew client:test
- name: Run integration tests
run: ./gradlew client:integrationTest
- name: Run generator tests
run: ./gradlew messagegenerator:test
- name: Upload Failing Unit Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: Unit and Int Test Failure Results
path: |
client/build/reports/tests/**
messagegenerator/build/reports/tests/**
e2e-authentication-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Pull and Run OBS Websocket
run: docker run -p 4455:4455 -d obswebsocketcommunity/docker:latest
- name: Run End2End Secured tests
run: ./gradlew client:endToEndSecuredTest
- name: Upload Failing Unit Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: E2E Secured Test Failure Results
path: client/build/reports/tests/**
example-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Example gradle build
run: ./gradlew example:build