Skip to content

Commit a56afca

Browse files
authored
cli core static validation for security + artifactory
1 parent 1a38c9e commit a56afca

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/analysis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,39 @@ jobs:
5959
else
6060
echo "✅ No uncommented replace directives found in go.mod"
6161
fi
62+
63+
Validate-CLI-Compatibility:
64+
name: Validate ${{ matrix.repo }} Compatibility
65+
runs-on: ubuntu-latest
66+
strategy:
67+
fail-fast: false
68+
matrix:
69+
include:
70+
- repo: jfrog-cli-security
71+
branch: dev
72+
- repo: jfrog-cli-artifactory
73+
branch: main
74+
75+
steps:
76+
- name: Checkout CLI Core Source
77+
uses: actions/checkout@v5
78+
with:
79+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
80+
81+
- name: Checkout ${{ matrix.repo }} Source - ${{ matrix.branch }} branch
82+
uses: actions/checkout@v5
83+
with:
84+
repository: jfrog/${{ matrix.repo }}
85+
ref: ${{ matrix.branch }}
86+
path: ${{ matrix.repo }}
87+
88+
- name: Replace To Local Core in ${{ matrix.repo }}
89+
run: |
90+
cd ${{ matrix.repo }}
91+
go mod edit -replace github.com/jfrog/jfrog-cli-core/v2=${GITHUB_WORKSPACE}
92+
go mod tidy
93+
94+
- name: Run go vet on ${{ matrix.repo }}
95+
run: |
96+
cd ${{ matrix.repo }}
97+
go vet ./...

0 commit comments

Comments
 (0)