Skip to content
Open
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
66 changes: 66 additions & 0 deletions .github/workflows/ghostFrogTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
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
Loading