Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/jfrog/frogbot into add_xsc_s…
Browse files Browse the repository at this point in the history
…upport
  • Loading branch information
EyalDelarea committed Sep 8, 2023
2 parents 6e4bde9 + 79380e9 commit 923b231
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,30 @@ jobs:
# Generate mocks
- name: Generate mocks
run: go generate ./...
if: ${{ matrix.suite != 'unit' }}

- name: Lint
run: go vet -v ./...

tests:
needs: Pretest
name: ${{ matrix.suite }} Tests (${{ matrix.os }})
name: ${{ matrix.suite.name }} Tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}-latest
env:
JFROG_CLI_LOG_LEVEL: "DEBUG"
strategy:
fail-fast: false
matrix:
suite: [ unit, scanrepository, scanpullrequest, packagehandlers ]
suite:
- name: 'Unit'

- name: 'Scan Repository'
package: 'scanrepository'

- name: 'Scan Pull Request'
package: 'scanpullrequest'

- name: 'Package Handlers'
package: 'packagehandlers'
os: [ ubuntu, windows, macos ]
steps:
# Configure prerequisites
Expand Down Expand Up @@ -97,21 +106,13 @@ jobs:
# Generate mocks
- name: Generate mocks
run: go generate ./...
if: ${{ matrix.suite != 'unit' }}

- name: unit Tests
run: go test github.com/jfrog/frogbot -v -race -timeout 30m -cover
env:
JF_URL: ${{ secrets.PLATFORM_URL }}
JF_ACCESS_TOKEN: ${{ secrets.PLATFORM_ADMIN_TOKEN }}
if: ${{ matrix.suite == 'unit' }}
if: ${{ matrix.suite.name != 'Unit' }}

- name: ${{ matrix.test }} Tests
run: go test github.com/jfrog/frogbot/${{ matrix.suite }} -v -race -timeout 30m -cover
- name: Run Tests
run: go test github.com/jfrog/frogbot/${{ matrix.suite.package }} -v -race -timeout 30m -cover
env:
JF_URL: ${{ secrets.PLATFORM_URL }}
JF_ACCESS_TOKEN: ${{ secrets.PLATFORM_ADMIN_TOKEN }}
if: ${{ matrix.suite != 'unit' }}

# Build and run frogbot current changes for visual sanity check.
sanity-pull-request:
Expand Down

0 comments on commit 923b231

Please sign in to comment.