-
Notifications
You must be signed in to change notification settings - Fork 102
66 lines (58 loc) · 1.72 KB
/
run-pr-tests.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
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
name: Run tests
on:
workflow_dispatch:
pull_request:
types: ['opened', 'reopened', 'synchronize']
push:
branches:
- 'debug/**'
permissions:
checks: write
pull-requests: write
concurrency:
group: pr-cg-${{ github.ref }}
cancel-in-progress: true
jobs:
run_playwright_tests:
uses: ./.github/workflows/run-playwright-tests.yml
run_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache local Gradle dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache local npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Build and run tests
env:
GENERATE_SOURCEMAP: false
CI: false
run: ./gradlew odd-platform-api:build ${{ github.event.inputs.buildOptions }} --no-daemon --scan -PbundleUI=false
- name: Publish test reports
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: 'odd-platform-api/build/test-results/**/*.xml'
check_name: Test Results
comment_mode: create new