|
7 | 7 | push: |
8 | 8 | branches: [main, v1] |
9 | 9 | pull_request: |
| 10 | + # Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened |
| 11 | + # by other workflows. |
| 12 | + types: [opened, synchronize, reopened, ready_for_review] |
10 | 13 | workflow_dispatch: |
11 | 14 |
|
12 | 15 | jobs: |
@@ -494,6 +497,47 @@ jobs: |
494 | 497 | exit 1 |
495 | 498 | fi |
496 | 499 |
|
| 500 | + # Ruby is in beta, so test it separately for now. |
| 501 | + multi-language-repo_test-ruby: |
| 502 | + needs: [check-js, check-node-modules, check-codeql-versions] |
| 503 | + strategy: |
| 504 | + fail-fast: false |
| 505 | + matrix: |
| 506 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 507 | + tools: |
| 508 | + - latest |
| 509 | + # TODO: Uncomment when nightly builds also support Ruby in beta. |
| 510 | + # - ${{ needs.check-codeql-versions.outputs.nightly-url }} |
| 511 | + runs-on: ${{ matrix.os }} |
| 512 | + env: |
| 513 | + CODEQL_ENABLE_EXPERIMENTAL_FEATURES: true |
| 514 | + |
| 515 | + steps: |
| 516 | + - uses: actions/checkout@v2 |
| 517 | + - name: Move codeql-action |
| 518 | + shell: bash |
| 519 | + run: | |
| 520 | + mkdir ../action |
| 521 | + mv * .github ../action/ |
| 522 | + mv ../action/tests/multi-language-repo/{*,.github} . |
| 523 | + mv ../action/.github/workflows .github |
| 524 | + - uses: ./../action/init |
| 525 | + with: |
| 526 | + languages: ruby |
| 527 | + tools: ${{ matrix.tools }} |
| 528 | + - uses: ./../action/analyze |
| 529 | + id: analysis |
| 530 | + env: |
| 531 | + TEST_MODE: true |
| 532 | + - name: Check database |
| 533 | + shell: bash |
| 534 | + run: | |
| 535 | + RUBY_DB="${{ fromJson(steps.analysis.outputs.db-locations).ruby }}" |
| 536 | + if [[ ! -d "$RUBY_DB" ]]; then |
| 537 | + echo "Did not create a database for Ruby." |
| 538 | + exit 1 |
| 539 | + fi |
| 540 | +
|
497 | 541 | multi-language-repo_rubocop: |
498 | 542 | needs: [check-js, check-node-modules] |
499 | 543 | runs-on: ubuntu-latest |
|
0 commit comments