Skip to content

Commit 8147a08

Browse files
authored
RTECO-1411 Add agentplugins tests (#3551)
* RTECO-1411 - Implement integration tests for Agent Plugins * Organise similar agentplugins tests together * Use build-gate environment approval * Add macOS stub to agent plugins matrix (JGC-413)
1 parent b57ff02 commit 8147a08

9 files changed

Lines changed: 2726 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Agent Plugins Tests
2+
on:
3+
workflow_call:
4+
workflow_dispatch:
5+
6+
jobs:
7+
Agent-Plugins-Tests:
8+
name: agent-plugins ${{ matrix.os.name }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os:
13+
- name: ubuntu
14+
version: 24.04
15+
- name: windows
16+
version: 2022
17+
- name: macos
18+
version: 14
19+
runs-on: ${{ matrix.os.name }}-${{ matrix.os.version }}
20+
steps:
21+
- name: Skip macOS - JGC-413
22+
if: matrix.os.name == 'macos'
23+
run: |
24+
echo "::warning::JGC-413 - Skip until artifactory bootstrap in osx is fixed"
25+
exit 0
26+
27+
- name: Checkout code
28+
if: matrix.os.name != 'macos'
29+
uses: actions/checkout@v6
30+
with:
31+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
32+
33+
- name: Setup FastCI
34+
if: matrix.os.name != 'macos'
35+
uses: jfrog-fastci/fastci@v1
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
fastci_otel_token: ${{ secrets.FASTCI_TOKEN }}
39+
40+
- name: Setup Go with cache
41+
if: matrix.os.name != 'macos'
42+
uses: jfrog/.github/actions/install-go-with-cache@main
43+
44+
- name: Install local Artifactory
45+
if: matrix.os.name != 'macos'
46+
uses: jfrog/.github/actions/install-local-artifactory@main
47+
with:
48+
RTLIC: ${{ secrets.RTLIC }}
49+
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}
50+
51+
- name: Run agent plugins tests
52+
if: matrix.os.name != 'macos'
53+
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.agentPlugins

.github/workflows/build-gate.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
uses: ./.github/workflows/frogbot-scan-pull-request.yml
3838
secrets: inherit
3939

40+
agent-plugins:
41+
needs: gate
42+
uses: ./.github/workflows/agentPluginsTests.yml
43+
secrets: inherit
4044
access:
4145
needs: gate
4246
# OIDC suite: caller must grant id-token so the reusable workflow can request it.
@@ -164,6 +168,7 @@ jobs:
164168
needs:
165169
- gate
166170
- frogbot
171+
- agent-plugins
167172
- access
168173
- artifactory
169174
- conan

0 commit comments

Comments
 (0)