Skip to content

Commit b9b7d9f

Browse files
committed
Add PR check for file baseline information
1 parent 89e1893 commit b9b7d9f

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

.github/workflows/__export-file-baseline-information.yml

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Export file baseline information"
2+
description: "Tests that exporting file baseline information works"
3+
versions: ["nightly-latest"]
4+
steps:
5+
- uses: ./../action/init
6+
with:
7+
tools: ${{ steps.prepare-test.outputs.tools-url }}
8+
env:
9+
CODEQL_FILE_BASELINE_INFORMATION: true
10+
TEST_MODE: true
11+
- name: Build code
12+
shell: bash
13+
run: ./build.sh
14+
- uses: ./../action/analyze
15+
with:
16+
output: "${{ runner.temp }}/results"
17+
env:
18+
CODEQL_FILE_BASELINE_INFORMATION: true
19+
TEST_MODE: true
20+
- name: Upload SARIF
21+
uses: actions/upload-artifact@v3
22+
with:
23+
name: with-baseline-information-${{ matrix.os }}-${{ matrix.version }}.sarif.json
24+
path: "${{ runner.temp }}/results/javascript.sarif"
25+
retention-days: 7

0 commit comments

Comments
 (0)