Skip to content

New Feature: Implement package alias to invoke jfrog-cli based on package manager #3

New Feature: Implement package alias to invoke jfrog-cli based on package manager

New Feature: Implement package alias to invoke jfrog-cli based on package manager #3

Workflow file for this run

name: Ghost Frog Tests
on:
workflow_dispatch:
push:
branches:
- "master"
- "ghost-frog"
# Triggers the workflow on PRs to master branch only.
pull_request_target:
types: [labeled]
branches:
- "master"
# Ensures that only the latest commit is running for each PR at a time.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Ghost-Frog-Tests:
name: Ghost Frog tests (${{ matrix.os.name }})
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'safe to test')
strategy:
fail-fast: false
matrix:
os:
- name: ubuntu
version: 24.04
- name: windows
version: 2022
runs-on: ${{ matrix.os.name }}-${{ matrix.os.version }}
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Setup FastCI
uses: jfrog-fastci/fastci@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
fastci_otel_token: ${{ secrets.FASTCI_TOKEN }}
- name: Setup Go with cache
uses: jfrog/.github/actions/install-go-with-cache@main
- name: Setup JFrog CLI with package alias
uses: bhanurp/setup-jfrog-cli@add-package-alias
with:
version: 2.93.0
download-repository: bhanu-ghost-frog
enable-package-alias: true
package-alias-tools: npm,mvn,go,pip
custom-server-id: ghost-demo
env:
JF_URL: ${{ secrets.JFROG_URL }}
JF_ACCESS_TOKEN: ${{ secrets.JFROG_ACCESS_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "16"
- name: Run Ghost Frog tests
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.ghostFrog
env:
JFROG_CLI_LOG_LEVEL: DEBUG