-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
844 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Access Tests | ||
on: | ||
push: | ||
# Triggers the workflow on labeled PRs only. | ||
pull_request_target: | ||
types: [labeled] | ||
# Ensures that only the latest commit is running for each PR at a time. | ||
# Ignores this rule for push events. | ||
concurrency: | ||
group: ${{ github.event.pull_request.number || github.sha }}-access | ||
cancel-in-progress: true | ||
jobs: | ||
Access-Tests: | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push' | ||
name: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.x | ||
- name: Go Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Run Access tests | ||
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.access --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --jfrog.user=${{ secrets.PLATFORM_USER }} --ci.runId=${{ runner.os }}-access |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Artifactory Tests | ||
on: | ||
push: | ||
# Triggers the workflow on labeled PRs only. | ||
pull_request_target: | ||
types: [labeled] | ||
# Ensures that only the latest commit is running for each PR at a time. | ||
# Ignores this rule for push events. | ||
concurrency: | ||
group: ${{ github.event.pull_request.number || github.sha }}-artifactory | ||
cancel-in-progress: true | ||
jobs: | ||
Artifactory-Tests: | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push' | ||
name: ${{ matrix.suite }} ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
suite: [artifactory, artifactoryProject] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.x | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Go Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
- name: Setup Artifactory | ||
run: | | ||
go install github.com/jfrog/jfrog-testing-infra/local-rt-setup@latest | ||
~/go/bin/local-rt-setup | ||
env: | ||
RTLIC: ${{secrets.RTLIC}} | ||
GOPROXY: direct | ||
if: ${{ matrix.suite == 'artifactory' }} | ||
- name: Run Artifactory tests | ||
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.artifactory | ||
if: ${{ matrix.suite == 'artifactory' }} | ||
- name: Run Artifactory projects tests | ||
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.artifactoryProject --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --jfrog.user=${{ secrets.PLATFORM_USER }} --ci.runId=${{ runner.os }}-${{ matrix.suite }} | ||
if: ${{ matrix.suite == 'artifactoryProject' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Distribution Tests | ||
on: | ||
push: | ||
# Triggers the workflow on labeled PRs only. | ||
pull_request_target: | ||
types: [labeled] | ||
# Ensures that only the latest commit is running for each PR at a time. | ||
# Ignores this rule for push events. | ||
concurrency: | ||
group: ${{ github.event.pull_request.number || github.sha }}-distribution | ||
cancel-in-progress: true | ||
jobs: | ||
Distribution-Tests: | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push' | ||
name: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.x | ||
- name: Go Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Run Distribution tests | ||
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.distribution --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --jfrog.user=${{ secrets.PLATFORM_USER }} --ci.runId=${{ runner.os }}-distribution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Docker Tests | ||
on: | ||
push: | ||
# Triggers the workflow on labeled PRs only. | ||
pull_request_target: | ||
types: [labeled] | ||
# Ensures that only the latest commit is running for each PR at a time. | ||
# Ignores this rule for push events. | ||
concurrency: | ||
group: ${{ github.event.pull_request.number || github.sha }}-docker | ||
cancel-in-progress: true | ||
jobs: | ||
Docker-tests: | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push' | ||
name: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.x | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Go Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
- name: Run Docker tests | ||
run: go test -v -timeout 0 --test.docker --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --rt.dockerRepoDomain=${{ secrets.CONTAINER_REGISTRY }} --rt.dockerVirtualRepo=${{ secrets.DOCKER_VIRTUAL }} --rt.dockerLocalRepo=${{ secrets.DOCKER_LOCAL }} --rt.dockerRemoteRepo=${{ secrets.DOCKER_REMOTE }} --rt.dockerPromoteLocalRepo=${{ secrets.DOCKER_PROMOTE_LOCAL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Go Tests | ||
on: | ||
push: | ||
# Triggers the workflow on labeled PRs only. | ||
pull_request_target: | ||
types: [labeled] | ||
# Ensures that only the latest commit is running for each PR at a time. | ||
# Ignores this rule for push events. | ||
concurrency: | ||
group: ${{ github.event.pull_request.number || github.sha }}-go | ||
cancel-in-progress: true | ||
jobs: | ||
GO-tests: | ||
# Go modules doesn't allow passing credentials to a private registry using an HTTP URL. Therefore, the Go tests run against a remote Artifactory server. | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push' | ||
name: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.x | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Go Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
- name: Run Go tests | ||
run: go test -v -timeout 0 --test.go --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --ci.runId=${{ runner.os }}-go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Gradle Tests | ||
on: | ||
push: | ||
# Triggers the workflow on labeled PRs only. | ||
pull_request_target: | ||
types: [labeled] | ||
# Ensures that only the latest commit is running for each PR at a time. | ||
# Ignores this rule for push events. | ||
concurrency: | ||
group: ${{ github.event.pull_request.number || github.sha }}-gradle | ||
cancel-in-progress: true | ||
jobs: | ||
Gradle-Tests: | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push' | ||
name: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.x | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Go Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
- name: Setup Artifactory | ||
run: | | ||
go install github.com/jfrog/jfrog-testing-infra/local-rt-setup@latest | ||
~/go/bin/local-rt-setup | ||
env: | ||
RTLIC: ${{secrets.RTLIC}} | ||
GOPROXY: direct | ||
- name: Run Gradle tests | ||
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Maven Tests | ||
on: | ||
push: | ||
# Triggers the workflow on labeled PRs only. | ||
pull_request_target: | ||
types: [labeled] | ||
# Ensures that only the latest commit is running for each PR at a time. | ||
# Ignores this rule for push events. | ||
concurrency: | ||
group: ${{ github.event.pull_request.number || github.sha }}-maven | ||
cancel-in-progress: true | ||
jobs: | ||
Maven-Tests: | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push' | ||
name: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.x | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Go Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go | ||
- name: Setup Artifactory | ||
run: | | ||
go install github.com/jfrog/jfrog-testing-infra/local-rt-setup@latest | ||
~/go/bin/local-rt-setup | ||
env: | ||
RTLIC: ${{secrets.RTLIC}} | ||
GOPROXY: direct | ||
- name: Run Maven tests | ||
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.maven |
Oops, something went wrong.