|
10 | 10 | runs-on: ${{ matrix.os }}
|
11 | 11 |
|
12 | 12 | steps:
|
13 |
| - - uses: actions/setup-go@v2 |
14 |
| - if: ${{ matrix.os == 'macos-latest' }} |
15 |
| - with: |
16 |
| - go-version: '^1.13.1' |
17 | 13 | - uses: actions/checkout@v2
|
18 | 14 | - name: Move codeql-action
|
19 | 15 | shell: bash
|
|
33 | 29 | multi-language-repo_test-custom-queries:
|
34 | 30 | strategy:
|
35 | 31 | matrix:
|
36 |
| - os: [ubuntu-latest, windows-latest] |
| 32 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 33 | + runs-on: ${{ matrix.os }} |
| 34 | + |
| 35 | + steps: |
| 36 | + - uses: actions/checkout@v2 |
| 37 | + - name: Move codeql-action |
| 38 | + shell: bash |
| 39 | + run: | |
| 40 | + mkdir ../action |
| 41 | + shopt -s dotglob |
| 42 | + mv * ../action/ |
| 43 | + mv ../action/tests/multi-language-repo/* . |
| 44 | + - uses: ./../action/init |
| 45 | + with: |
| 46 | + languages: cpp,csharp,java,javascript,python |
| 47 | + config-file: ./.github/codeql/custom-queries.yml |
| 48 | + - name: Build code |
| 49 | + shell: bash |
| 50 | + run: ./build.sh |
| 51 | + - uses: ./../action/analyze |
| 52 | + env: |
| 53 | + TEST_MODE: true |
| 54 | + |
| 55 | + # Currently is not possible to analyze Go in conjunction with other languages in macos |
| 56 | + multi-language-repo_test-go-custom-queries: |
| 57 | + strategy: |
| 58 | + matrix: |
| 59 | + os: [ubuntu-latest, windows-latest, macos-latest] |
37 | 60 | runs-on: ${{ matrix.os }}
|
38 | 61 |
|
39 | 62 | steps:
|
|
51 | 74 | mv ../action/tests/multi-language-repo/* .
|
52 | 75 | - uses: ./../action/init
|
53 | 76 | with:
|
54 |
| - languages: cpp,csharp,go,java,javascript,python |
| 77 | + languages: go |
55 | 78 | config-file: ./.github/codeql/custom-queries.yml
|
56 | 79 | - name: Build code
|
57 | 80 | shell: bash
|
|
0 commit comments