Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,20 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Move action
run: |
mkdir ../action
mv * ../action
mv ../action/sample-repo/* .

- name: Run action
id: run-action
uses: ./../action
with:
target: push
sources: ${{ github.workspace }}
debug: true
sources: sample-repo
# debug: true

- name: Check run succeeded
env:
RUN_OUTPUT: ${{ steps.run-action.outputs.push-completed }}
Expand All @@ -51,14 +48,17 @@ jobs:
echo "::error Test run failed!"
exit 1
fi

- name: Download results
uses: actions/download-artifact@v3
with:
name: results-push
path: artifact

- name: Check results
working-directory: artifact
run: |
cat sca.sarif
export SCA_RESULTS=`jq '.runs | map (.results | length) | add' sca.sarif`
expectedScaResults=5
echo "Got $SCA_RESULTS from SCA"
Expand Down
Loading