Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6b2f7e7

Browse files
committedSep 24, 2024·
Run PR checks using JS only
1 parent af8e2bc commit 6b2f7e7

File tree

4 files changed

+12
-28
lines changed

4 files changed

+12
-28
lines changed
 

‎.github/workflows/__zstd-bundle-fallback.yml

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

‎.github/workflows/__zstd-bundle.yml

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

‎pr-checks/checks/zstd-bundle-fallback.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@ steps:
2121
- id: init
2222
uses: ./../action/init
2323
with:
24-
# Swift is not supported on Ubuntu so we manually exclude it from the list here
25-
languages: cpp,csharp,go,java,javascript,python,ruby
24+
languages: javascript
2625
tools: ${{ steps.prepare-test.outputs.tools-url }}
27-
- name: Build code
28-
shell: bash
29-
run: ./build.sh
3026
- uses: ./../action/analyze
3127
with:
3228
output: ${{ runner.temp }}/results
@@ -35,12 +31,12 @@ steps:
3531
uses: actions/upload-artifact@v3
3632
with:
3733
name: zstd-bundle.sarif
38-
path: ${{ runner.temp }}/results/cpp.sarif
34+
path: ${{ runner.temp }}/results/javascript.sarif
3935
retention-days: 7
4036
- name: Check expected diagnostics
4137
uses: actions/github-script@v7
4238
env:
43-
SARIF_PATH: ${{ runner.temp }}/results/cpp.sarif
39+
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
4440
with:
4541
script: |
4642
const fs = require('fs');

‎pr-checks/checks/zstd-bundle.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ steps:
2020
- id: init
2121
uses: ./../action/init
2222
with:
23-
# Swift is not supported on Ubuntu so we manually exclude it from the list here
24-
languages: cpp,csharp,go,java,javascript,python,ruby
23+
languages: javascript
2524
tools: ${{ steps.prepare-test.outputs.tools-url }}
26-
- name: Build code
27-
shell: bash
28-
run: ./build.sh
2925
- uses: ./../action/analyze
3026
with:
3127
output: ${{ runner.temp }}/results
@@ -34,12 +30,12 @@ steps:
3430
uses: actions/upload-artifact@v3
3531
with:
3632
name: zstd-bundle.sarif
37-
path: ${{ runner.temp }}/results/cpp.sarif
33+
path: ${{ runner.temp }}/results/javascript.sarif
3834
retention-days: 7
3935
- name: Check diagnostic with expected tools URL appears in SARIF
4036
uses: actions/github-script@v7
4137
env:
42-
SARIF_PATH: ${{ runner.temp }}/results/cpp.sarif
38+
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
4339
with:
4440
script: |
4541
const fs = require('fs');

0 commit comments

Comments
 (0)
Please sign in to comment.