Skip to content

Commit 9f36b75

Browse files
Splits integration tests
1 parent dfe2bc4 commit 9f36b75

File tree

4 files changed

+86
-8
lines changed

4 files changed

+86
-8
lines changed

.github/workflows/__analyze-ref-input.yml

+63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__ref-commit-input.yml .github/workflows/__upload-ref-sha-input.yml

+4-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Analyze: 'ref' and 'sha' from inputs"
2+
description: "Checks that specifying 'ref' and 'sha' as inputs works"
3+
steps:
4+
- uses: ./../action/init
5+
with:
6+
tools: ${{ steps.prepare-test.outputs.tools-url }}
7+
languages: cpp,csharp,java,javascript,python
8+
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{ github.sha }}
9+
- name: Build code
10+
shell: bash
11+
run: ./build.sh
12+
- uses: ./../action/analyze
13+
with:
14+
ref: 'refs/heads/main'
15+
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
16+
env:
17+
TEST_MODE: true

pr-checks/checks/ref-commit-input.yml pr-checks/checks/upload-ref-sha-input.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "'ref' and 'sha' from inputs"
1+
name: "Upload-sarif: 'ref' and 'sha' from inputs"
22
description: "Checks that specifying 'ref' and 'sha' as inputs works"
33
steps:
44
- uses: ./../action/init
@@ -13,13 +13,12 @@ steps:
1313
with:
1414
ref: 'refs/heads/main'
1515
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
16-
category: 'analyze'
16+
upload: false
1717
env:
1818
TEST_MODE: true
1919
- uses: ./../action/upload-sarif
2020
with:
2121
ref: 'refs/heads/main'
2222
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
23-
category: 'upload'
2423
env:
2524
TEST_MODE: true

0 commit comments

Comments
 (0)