Skip to content

Commit

Permalink
Update git action
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 committed Aug 9, 2023
1 parent 01b9708 commit 4ebb56c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
test-tag: ['scanrepository', 'scanpullrequest', '']
steps:
- name: Unlabel 'safe to test'
uses: actions-ecosystem/action-remove-labels@v1
if: ${{github.event_name != 'push' }} && runner.os == 'Linux'
if: ${{ github.event_name != 'push' }} && runner.os == 'Linux'
with:
labels: 'safe to test'

Expand Down Expand Up @@ -60,11 +61,12 @@ jobs:

# Run tests
- name: Tests
run: go test -p 1 ./... -v -race -timeout 30m -cover -coverprofile=covprofile -covermode=atomic
run: go test -p 1 ./... -tags={{ matrix.test-tag }} -v -race -timeout 30m -cover -coverprofile=covprofile -covermode=atomic
env:
JF_URL: ${{ secrets.PLATFORM_URL }}
JF_ACCESS_TOKEN: ${{ secrets.PLATFORM_ADMIN_TOKEN }}
JFROG_CLI_LOG_LEVEL: "DEBUG"

# Generate code coverage
- name: Send coverage
run: |
Expand Down
3 changes: 3 additions & 0 deletions commands/scanpullrequest/scanallpullrequests_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build scanpullrequest
// +build scanpullrequest

package scanpullrequest

import (
Expand Down
3 changes: 3 additions & 0 deletions commands/scanpullrequest/scanpullrequest_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build scanpullrequest
// +build scanpullrequest

package scanpullrequest

import (
Expand Down
3 changes: 3 additions & 0 deletions commands/scanrepository/scanmultiplerepositories_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build scanrepository
// +build scanrepository

package scanrepository

import (
Expand Down
3 changes: 3 additions & 0 deletions commands/scanrepository/scanrepository_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build scanrepository
// +build scanrepository

package scanrepository

import (
Expand Down

0 comments on commit 4ebb56c

Please sign in to comment.