@@ -3,20 +3,46 @@ name: "Integration Testing"
33on : [push]
44
55jobs :
6- dispatch-events :
7- if : github.event.repository.full_name == 'github/codeql-action'
8- runs-on : ubuntu-latest
6+ multi-language-repo/test-autodetect-languages :
7+ strategy :
8+ matrix :
9+ os : [ubuntu-latest, windows-latest, macos-latest]
10+ runs-on : ${{ matrix.os }}
11+
912 steps :
10- - name : Send repository dispatch events
13+ - uses : actions/checkout@v2
14+ - name : Move codeql-action
15+ shell : bash
1116 run : |
12- curl -X POST \
13- -H "Authorization: Bearer ${{ secrets.CODEQL_TESTING_TOKEN }}" \
14- -H "Accept: application/vnd.github.everest-preview+json" \
15- https://api.github.com/repos/Anthophila/amazon-cognito-js-copy/dispatches \
16- -d '{"event_type":"codeql-integration","client_payload": {"sha": "${{ github.sha }}"}}'
17+ mkdir ../action
18+ mv * ../action/
19+ mv ../action/tests/multi-language-repo/* .
20+ - uses : ./../action/init
21+ - name : Build code
22+ shell : bash
23+ run : ./build.sh
24+ - uses : ./../action/analyze
25+
26+
27+ multi-language-repo/test-custom-queries :
28+ strategy :
29+ matrix :
30+ os : [ubuntu-latest, windows-latest, macos-latest]
31+ runs-on : ${{ matrix.os }}
1732
18- curl -X POST \
19- -H "Authorization: Bearer ${{ secrets.CODEQL_TESTING_TOKEN }}" \
20- -H "Accept: application/vnd.github.everest-preview+json" \
21- https://api.github.com/repos/Anthophila/electron-test-action/dispatches \
22- -d '{"event_type":"codeql-integration","client_payload": {"sha": "${{ github.sha }}"}}'
33+ steps :
34+ - uses : actions/checkout@v2
35+ - name : Move codeql-action
36+ shell : bash
37+ run : |
38+ mkdir ../action
39+ mv * ../action/
40+ mv ../action/tests/multi-language-repo/* .
41+ - uses : ./../action/init
42+ with :
43+ languages : cpp,csharp,go,java,javascript,python
44+ config-file : ./.github/codeql/custom-queries.yml
45+ - name : Build code
46+ shell : bash
47+ run : ./build.sh
48+ - uses : ./../action/analyze
0 commit comments