Run go tests on the ecosys
@@ -29,7 +29,6 @@ jobs:
maven,
gradle,
nuget,
- go,
]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
@@ -101,6 +100,27 @@ jobs:
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.${{ matrix.suite }}=true --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 == 'distribution' || matrix.suite == 'xray' }}
+ 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: go (${{ 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@v2
+ with:
+ go-version: 1.17.x
+ - name: Checkout code
+ uses: actions/checkout@v2
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
+ - name: Run Docker tests
+ run: go test -v -timeout 0 --test.go --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }}
+
Docker-tests:
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push'
name: docker (ubuntu-latest)
