Skip to content

Commit

Permalink
unite actions
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Jul 16, 2024
1 parent b334e14 commit 8d4cf6f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 14 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ jobs:
- name: Checkout Source
uses: actions/checkout@v4

- uses: jfrog/.github/.github/actions/install-go-with-cache
- name: Setup Go with cache
uses: jfrog/.github/.github/actions/install-go-with-cache

- uses: jfrog/.github/.github/actions/golangci-lint
- name: Run golangci lint
uses: jfrog/.github/.github/actions/golangci-lint
Go-Sec:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4

- uses: jfrog/.github/.github/actions/install-go-with-cache
- name: Setup Go with cache
uses: jfrog/.github/.github/actions/install-go-with-cache

- uses: jfrog/.github/.github/actions/gosec-scanner
- name: Run Go-Sec scanner
uses: jfrog/.github/.github/actions/gosec-scanner
3 changes: 2 additions & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
- uses: jfrog/.github/.github/actions/cla
- name: Run CLA Check
uses: jfrog/.github/.github/actions/cla
with:
event_comment_body: ${{ github.event.comment.body }}
event_name: ${{ github.event_name }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/frogbot-scan-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
# "frogbot" GitHub environment can approve the pull request to be scanned.
environment: frogbot
steps:
- uses: jfrog/.github/.github/actions/install-go-with-cache
- name: Setup Go with cache
uses: jfrog/.github/.github/actions/install-go-with-cache

- uses: jfrog/frogbot@v2
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/frogbot-scan-repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
# The repository scanning will be triggered periodically on the following branches.
branch: [ "dev" ]
steps:
- uses: jfrog/.github/.github/actions/install-go-with-cache
- name: Setup Go with cache
uses: jfrog/.github/.github/actions/install-go-with-cache

- uses: jfrog/frogbot@v2
env:
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: jfrog/.github/.github/actions/install-go-with-cache
- name: Setup Go with cache
uses: jfrog/.github/.github/actions/install-go-with-cache

- name: Lint
run: go vet -v ./...
Expand All @@ -49,9 +50,11 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: jfrog/.github/.github/actions/install-go-with-cache
- name: Setup Go with cache
uses: jfrog/.github/.github/actions/install-go-with-cache

- uses: jfrog/.github/.github/actions/install-local-artifactory
- name: Install local Artifactory
uses: jfrog/.github/.github/actions/install-local-artifactory
with:
RTLIC: ${{ secrets.RTLIC }}

Expand All @@ -73,7 +76,8 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: jfrog/.github/.github/actions/install-go-with-cache
- name: Setup Go with cache
uses: jfrog/.github/.github/actions/install-go-with-cache

- name: ${{ matrix.suite }} tests
run: go test -v github.com/jfrog/jfrog-client-go/tests --timeout 0 --test.${{ matrix.suite }} --rt.url=${{ secrets.PLATFORM_URL }}/artifactory --ds.url=${{ secrets.PLATFORM_URL }}/distribution --xr.url=${{ secrets.PLATFORM_URL }}/xray --xsc.url=${{ secrets.PLATFORM_URL }}/xsc --access.url=${{ secrets.PLATFORM_URL }}/access --rt.user=${{ secrets.PLATFORM_USER }} --rt.password=${{ secrets.PLATFORM_PASSWORD }} --access.token=${{ secrets.PLATFORM_ADMIN_TOKEN }} --ci.runId=${{ runner.os }}-${{ matrix.suite }}
Expand All @@ -88,7 +92,8 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: jfrog/.github/.github/actions/install-go-with-cache
- name: Setup Go with cache
uses: jfrog/.github/.github/actions/install-go-with-cache

- name: pipelines tests
run: go test -v github.com/jfrog/jfrog-client-go/tests --timeout 0 --test.pipelines --rt.url=${{ secrets.PLATFORM_URL }}/artifactory --pipe.url=${{ secrets.PLATFORM_URL }}/pipelines --rt.user=${{ secrets.PLATFORM_USER }} --rt.password=${{ secrets.PLATFORM_PASSWORD }} --pipe.accessToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --pipe.vcsToken=${{ secrets.CLI_PIPE_VCS_TOKEN }} --pipe.vcsRepo=${{ secrets.CLI_PIPE_VCS_REPO }} --pipe.vcsBranch=${{ secrets.CLI_PIPE_VCS_BRANCH }} --ci.runId=${{ runner.os }}_pipe
Expand All @@ -103,9 +108,11 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: jfrog/.github/.github/actions/install-go-with-cache
- name: Setup Go with cache
uses: jfrog/.github/.github/actions/install-go-with-cache

- uses: jfrog/.github/.github/actions/install-local-artifactory
- name: Install local Artifactory
uses: jfrog/.github/.github/actions/install-local-artifactory
with:
RTLIC: ${{ secrets.RTLIC }}

Expand Down

0 comments on commit 8d4cf6f

Please sign in to comment.