-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (68 loc) · 2.29 KB
/
Copy pathci.yml
File metadata and controls
81 lines (68 loc) · 2.29 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
79
80
81
# (c) JFrog Ltd. (2026)
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
jobs:
test-macos:
name: Test (macOS)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Run macOS tests
run: sudo ./testing/test_install_certs_macos.sh
test-macos-jvm:
name: Test (macOS JVM)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
# Pass JAVA_HOME and PATH explicitly to the sudo'd test runner rather
# than relying on `sudo --preserve-env=…`: future actions/setup-java
# versions could rename or rescope the JAVA_HOME env var, silently
# breaking the preserve-by-name approach. Explicit `env VAR=…` is
# the same idiom and survives such churn.
- name: Run macOS JVM smoke matrix
run: |
sudo env \
JAVA_HOME="$JAVA_HOME" \
PATH="$JAVA_HOME/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" \
./testing/test_install_certs_jvm_macos.sh
test-windows:
name: Test (Windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Run Windows tests
shell: pwsh
run: ./testing/test_install_certs_windows.ps1
test-windows-jvm:
name: Test (Windows JVM)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Run Windows JVM smoke matrix
shell: pwsh
run: ./testing/test_install_certs_jvm_windows.ps1
test-linux-jvm:
name: Test (Linux JVM)
runs-on: ubuntu-latest
# No actions/setup-java here — unlike the macOS/Windows JVM jobs that
# exercise a single host JDK, this job runs a 4-distro Docker matrix
# (Ubuntu / Debian / RHEL / Amazon Linux) and installs a JDK *inside*
# each container. The host runner doesn't need a JDK; setting one up
# would only mask divergence in the per-distro keytool versions.
steps:
- uses: actions/checkout@v4
- name: Run Linux JVM smoke matrix
run: ./testing/test_install_certs_jvm_linux.sh