Skip to content

Commit

Permalink
run integration tests only on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin authored and simar7 committed Aug 15, 2023
1 parent 008d502 commit db83d90
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test-trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,40 @@ jobs:
- name: Run unit tests
run: mage test:unit

integration:
name: Integration Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.TRIVY_DIR }}
steps:
- name: Checkout defsec
uses: actions/checkout@v3
with:
repository: aquasecurity/defsec
path: ${{ env.DEFSEC_DIR }}

- name: Checkout trivy
uses: actions/checkout@v3
with:
repository: aquasecurity/trivy
path: ${{ env.TRIVY_DIR }}

- uses: actions/setup-go@v4
with:
go-version-file: "${{ env.TRIVY_DIR }}/go.mod"
cache-dependency-path: "${{ env.TRIVY_DIR }}/go.sum"

- name: Replace defsec
run: |
go mod edit -replace "github.com/aquasecurity/defsec=../${{ env.DEFSEC_DIR }}"
- name: Install tools
uses: aquaproj/[email protected]
with:
aqua_version: v2.8.0
working_directory: ${{ env.TRIVY_DIR }}

- name: Run integration tests
run: mage test:integration

Expand Down

0 comments on commit db83d90

Please sign in to comment.