forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (82 loc) · 2.75 KB
/
mobile-android_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
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
79
80
81
82
83
84
85
86
87
88
name: android_tests
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
env:
uses: ./.github/workflows/_env.yml
with:
prime_build_image: true
permissions:
contents: read
javatestslinux:
if: ${{ needs.env.outputs.mobile_android_tests == 'true' }}
needs: env
permissions:
contents: read
packages: read
name: java_tests_linux
runs-on: ${{ needs.env.outputs.agent_ubuntu }}
timeout-minutes: 90
steps:
- name: Pre-cleanup
# Using the defaults in
# https://github.com/envoyproxy/toolshed/blob/main/gh-actions/diskspace/action.yml.
uses: envoyproxy/toolshed/gh-actions/[email protected]
- uses: actions/checkout@v4
- name: Add safe directory
run: git config --global --add safe.directory /__w/envoy/envoy
- name: 'Run Kotlin library integration tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CC: /opt/llvm/bin/clang
CXX: /opt/llvm/bin/clang++
run: |
docker run --volume="${PWD}:/source" --workdir="/source/mobile" \
-e GITHUB_TOKEN -e CC -e CXX ${{ needs.env.outputs.build_image_ubuntu_mobile }} \
./bazelw test \
--build_tests_only \
--config=test-android \
--config=mobile-remote-ci \
--define=signal_trace=disabled \
//test/java/...
kotlintestslinux:
if: ${{ needs.env.outputs.mobile_android_tests == 'true' }}
needs: env
permissions:
contents: read
packages: read
# Only kotlin tests are executed since with linux:
# https://github.com/envoyproxy/envoy-mobile/issues/1418.
name: kotlin_tests_linux
runs-on: ${{ needs.env.outputs.agent_ubuntu }}
timeout-minutes: 90
steps:
- name: Pre-cleanup
# Using the defaults in
# https://github.com/envoyproxy/toolshed/blob/main/gh-actions/diskspace/action.yml.
uses: envoyproxy/toolshed/gh-actions/[email protected]
- uses: actions/checkout@v4
- name: Add safe directory
run: git config --global --add safe.directory /__w/envoy/envoy
- name: 'Run Kotlin library integration tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CC: /opt/llvm/bin/clang
CXX: /opt/llvm/bin/clang++
run: |
docker run --volume="${PWD}:/source" --workdir="/source/mobile" \
-e GITHUB_TOKEN -e CC -e CXX ${{ needs.env.outputs.build_image_ubuntu_mobile }} \
./bazelw test \
--build_tests_only \
--config=test-android \
--config=mobile-remote-ci \
--define=signal_trace=disabled \
//test/kotlin/...