File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -205,11 +205,6 @@ jobs:
205
205
- name : Fetch CodeQL
206
206
uses : ./.github/actions/fetch-codeql
207
207
208
- - uses : actions/checkout@v3
209
- with :
210
- repository : Shopify/example-ruby-app
211
- ref : 67a0decc5eb550f3a9228eda53925c3afd40dfe9
212
-
213
208
- name : Download Ruby bundle
214
209
uses : actions/download-artifact@v3
215
210
with :
@@ -218,26 +213,15 @@ jobs:
218
213
- name : Unzip Ruby bundle
219
214
shell : bash
220
215
run : unzip -q -d "${{ runner.temp }}/ruby-bundle" "${{ runner.temp }}/codeql-ruby-bundle.zip"
221
- - name : Prepare test files
222
- shell : bash
223
- run : |
224
- echo "import codeql.ruby.AST select count(File f)" > "test.ql"
225
- echo "| 4 |" > "test.expected"
226
- echo 'name: sample-tests
227
- version: 0.0.0
228
- dependencies:
229
- codeql/ruby-all: "*"
230
- extractor: ruby
231
- tests: .
232
- ' > qlpack.yml
216
+
233
217
- name : Run QL test
234
218
shell : bash
235
219
run : |
236
- codeql test run --search-path "${{ runner.temp }}/ruby-bundle" --additional-packs "${{ runner.temp }}/ruby-bundle" .
220
+ codeql test run --search-path "${{ runner.temp }}/ruby-bundle" --additional-packs "${{ runner.temp }}/ruby-bundle" ruby/ql/test/library-tests/ast/constants/
237
221
- name : Create database
238
222
shell : bash
239
223
run : |
240
- codeql database create --search-path "${{ runner.temp }}/ruby-bundle" --language ruby --source-root . ../database
224
+ codeql database create --search-path "${{ runner.temp }}/ruby-bundle" --language ruby --source-root ruby/ql/test/library-tests/ast/constants/ ../database
241
225
- name : Analyze database
242
226
shell : bash
243
227
run : |
You can’t perform that action at this time.
0 commit comments