Skip to content

Commit ca047f3

Browse files
authored
Add Conan tests workflow (#3288)
1 parent b72bb08 commit ca047f3

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/conanTests.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Conan Tests
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request_target:
8+
types: [labeled]
9+
branches:
10+
- "master"
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
Conan-Tests:
17+
name: Conan tests (${{ matrix.os.name }})
18+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'safe to test')
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os:
23+
- name: ubuntu
24+
version: 24.04
25+
- name: windows
26+
version: 2022
27+
- name: macos
28+
version: 14
29+
runs-on: ${{ matrix.os.name }}-${{ matrix.os.version }}
30+
steps:
31+
- name: Skip macOS - JGC-413
32+
if: matrix.os.name == 'macos'
33+
run: |
34+
echo "::warning::JGC-413 - Skip until artifactory bootstrap in osx is fixed"
35+
exit 0
36+
37+
- name: Checkout code
38+
if: matrix.os.name != 'macos'
39+
uses: actions/checkout@v5
40+
with:
41+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
42+
43+
- name: Setup Go with cache
44+
if: matrix.os.name != 'macos'
45+
uses: jfrog/.github/actions/install-go-with-cache@main
46+
47+
- name: Install Conan
48+
if: matrix.os.name != 'macos'
49+
uses: turtlebrowser/get-conan@main
50+
with:
51+
version: '2.10.2'
52+
53+
- name: Install local Artifactory
54+
if: matrix.os.name != 'macos'
55+
uses: jfrog/.github/actions/install-local-artifactory@main
56+
with:
57+
RTLIC: ${{ secrets.RTLIC }}
58+
RT_CONNECTION_TIMEOUT_SECONDS: '1200'
59+
60+
- name: Run Conan tests
61+
if: matrix.os.name != 'macos'
62+
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.conan

0 commit comments

Comments
 (0)