Skip to content

Commit

Permalink
Splits integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cw-alexcroteau committed Jan 26, 2022
1 parent b6a05d4 commit f1ca338
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 8 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/__analyze-ref-input.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions pr-checks/checks/analyze-ref-input.yml
@@ -0,0 +1,17 @@
name: "Analyze: 'ref' and 'sha' from inputs"
description: "Checks that specifying 'ref' and 'sha' as inputs works"
steps:
- uses: ./../action/init
with:
tools: ${{ steps.prepare-test.outputs.tools-url }}
languages: cpp,csharp,java,javascript,python
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{ github.sha }}
- name: Build code
shell: bash
run: ./build.sh
- uses: ./../action/analyze
with:
ref: 'refs/heads/main'
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
env:
TEST_MODE: true
@@ -1,4 +1,4 @@
name: "'ref' and 'sha' from inputs"
name: "Upload-sarif: 'ref' and 'sha' from inputs"
description: "Checks that specifying 'ref' and 'sha' as inputs works"
steps:
- uses: ./../action/init
Expand All @@ -13,13 +13,12 @@ steps:
with:
ref: 'refs/heads/main'
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
category: 'analyze'
upload: false
env:
TEST_MODE: true
- uses: ./../action/upload-sarif
with:
ref: 'refs/heads/main'
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
category: 'upload'
env:
TEST_MODE: true

0 comments on commit f1ca338

Please sign in to comment.