Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/accessTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: Access Tests
on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
push:
branches:
- "master"
Expand Down Expand Up @@ -72,9 +83,11 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Get ID Token and Exchange Token
Expand All @@ -87,4 +100,7 @@ jobs:

- name: Run Access tests
if: matrix.os.name != 'macos'
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.access --jfrog.url=http://127.0.0.1:8082 --jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }}
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.access
--jfrog.url=${{ env.JFROG_TESTS_URL || 'http://127.0.0.1:8082' }}
--jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }}
25 changes: 22 additions & 3 deletions .github/workflows/artifactoryTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: Artifactory Tests
on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
push:
branches:
- "master"
Expand Down Expand Up @@ -72,15 +83,23 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Run Artifactory tests
if: ${{ matrix.suite == 'artifactory' && matrix.os.name != 'macos' }}
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.artifactory --jfrog.url=http://127.0.0.1:8082 --jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }}
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.artifactory
--jfrog.url=${{ env.JFROG_TESTS_URL || 'http://127.0.0.1:8082' }}
--jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }}

- name: Run Artifactory projects tests
if: ${{ matrix.suite == 'artifactoryProject' && matrix.os.name != 'macos' }}
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.artifactoryProject --ci.runId=${{ runner.os }}-${{ matrix.suite }}
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.artifactoryProject
--ci.runId=${{ runner.os }}-${{ matrix.suite }}
${{ env.JFROG_TESTS_IS_EXTERNAL == 'true' && format('--jfrog.url={0} --jfrog.adminToken={1}', env.JFROG_TESTS_URL, env.JFROG_TESTS_LOCAL_ACCESS_TOKEN) || '' }}
19 changes: 17 additions & 2 deletions .github/workflows/conanTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: Conan Tests
on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
push:
branches:
- "master"
Expand Down Expand Up @@ -59,11 +70,15 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: '1200'

- name: Run Conan tests
if: matrix.os.name != 'macos'
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.conan
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.conan
${{ env.JFROG_TESTS_IS_EXTERNAL == 'true' && format('--jfrog.url={0} --jfrog.adminToken={1}', env.JFROG_TESTS_URL, env.JFROG_TESTS_LOCAL_ACCESS_TOKEN) || '' }}
19 changes: 17 additions & 2 deletions .github/workflows/gradleTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: Gradle Tests
on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
push:
branches:
- "master"
Expand Down Expand Up @@ -85,11 +96,15 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Run Gradle tests
if: matrix.os.name != 'macos'
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.gradle
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.gradle
${{ env.JFROG_TESTS_IS_EXTERNAL == 'true' && format('--jfrog.url={0} --jfrog.adminToken={1}', env.JFROG_TESTS_URL, env.JFROG_TESTS_LOCAL_ACCESS_TOKEN) || '' }}
20 changes: 18 additions & 2 deletions .github/workflows/helmTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: Helm Tests
on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
Comment on lines +4 to +14
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like repeating pattern fr all the files can it be made generic?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub Actions has no mechanism to share or inherit workflow_dispatch input definitions across workflow files. Each file must declare its own inputs independently — this is a documented platform limitation, not a design choice we can easily escape.

push:
branches:
- "master"
Expand Down Expand Up @@ -78,9 +89,11 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Get ID Token and Exchange Token
Expand All @@ -93,5 +106,8 @@ jobs:

- name: Run Helm tests
if: matrix.os.name != 'macos'
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.helm --jfrog.url=http://127.0.0.1:8082 --jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }}
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.helm
--jfrog.url=${{ env.JFROG_TESTS_URL || 'http://127.0.0.1:8082' }}
--jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }}

20 changes: 18 additions & 2 deletions .github/workflows/huggingfaceTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: HuggingFace Tests
on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
push:
branches:
- "master"
Expand Down Expand Up @@ -83,9 +94,11 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Get ID Token and Exchange Token
Expand All @@ -98,5 +111,8 @@ jobs:

- name: Run HuggingFace tests
if: matrix.os.name != 'macos'
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.huggingface --jfrog.url=http://127.0.0.1:8082 --jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }}
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.huggingface
--jfrog.url=${{ env.JFROG_TESTS_URL || 'http://127.0.0.1:8082' }}
--jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }}

21 changes: 19 additions & 2 deletions .github/workflows/lifecycleTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ env:
JFROG_CLI_LOG_LEVEL: DEBUG
on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
push:
branches:
- "master"
Expand Down Expand Up @@ -71,11 +82,17 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Run Lifecycle tests
if: matrix.os.name != 'macos'
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.lifecycle --jfrog.url=http://127.0.0.1:8082 --jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }} --ci.runId=${{ runner.os }}-lifecycle
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.lifecycle
--jfrog.url=${{ env.JFROG_TESTS_URL || 'http://127.0.0.1:8082' }}
--jfrog.adminToken=${{ env.JFROG_TESTS_LOCAL_ACCESS_TOKEN }}
--ci.runId=${{ runner.os }}-lifecycle
19 changes: 17 additions & 2 deletions .github/workflows/mavenTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: Maven Tests
on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
push:
branches:
- "master"
Expand Down Expand Up @@ -76,11 +87,15 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Run Maven tests
if: matrix.os.name != 'macos'
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.maven
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.maven
${{ env.JFROG_TESTS_IS_EXTERNAL == 'true' && format('--jfrog.url={0} --jfrog.adminToken={1}', env.JFROG_TESTS_URL, env.JFROG_TESTS_LOCAL_ACCESS_TOKEN) || '' }}
24 changes: 22 additions & 2 deletions .github/workflows/npmTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: npm Tests
on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
push:
branches:
- "master"
Expand Down Expand Up @@ -55,6 +66,11 @@ jobs:
with:
node-version: "16"

- name: Install yarn
if: matrix.os.name != 'macos'
run: npm install -g yarn
shell: bash

- name: Setup Go with cache
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-go-with-cache@main
Expand All @@ -75,13 +91,17 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Run npm tests
if: matrix.os.name != 'macos'
env:
YARN_IGNORE_NODE: 1
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.npm
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.npm
${{ env.JFROG_TESTS_IS_EXTERNAL == 'true' && format('--jfrog.url={0} --jfrog.adminToken={1}', env.JFROG_TESTS_URL, env.JFROG_TESTS_LOCAL_ACCESS_TOKEN) || '' }}
19 changes: 17 additions & 2 deletions .github/workflows/nugetTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ name: NuGet Tests

on:
workflow_dispatch:
inputs:
jfrog_url:
description: "External JFrog Platform URL. Leave empty for local Artifactory."
type: string
required: false
default: ""
jfrog_admin_token:
description: "Admin token for external JFrog Platform."
type: string
required: false
default: ""
push:
branches:
- "master"
Expand Down Expand Up @@ -99,11 +110,15 @@ jobs:

- name: Install local Artifactory
if: matrix.os.name != 'macos'
uses: jfrog/.github/actions/install-local-artifactory@main
uses: jfrog/.github/actions/install-local-artifactory@fix/Updated-install-local-artfactory-setup
with:
RTLIC: ${{ secrets.RTLIC }}
JFROG_URL: ${{ inputs.jfrog_url }}
JFROG_ADMIN_TOKEN: ${{ inputs.jfrog_admin_token }}
RT_CONNECTION_TIMEOUT_SECONDS: ${{ env.RT_CONNECTION_TIMEOUT_SECONDS || '1200' }}

- name: Run NuGet tests
if: matrix.os.name != 'macos'
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.nuget
run: >-
go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.nuget
${{ env.JFROG_TESTS_IS_EXTERNAL == 'true' && format('--jfrog.url={0} --jfrog.adminToken={1}', env.JFROG_TESTS_URL, env.JFROG_TESTS_LOCAL_ACCESS_TOKEN) || '' }}
Loading
Loading