xref: /llvm-project/.github/workflows/llvm-project-workflow-tests.yml (revision 0267f9800ea23921120faa4b1d46ac5806e5eca1)
1# This workflow will test the llvm-project-tests workflow in PRs
2# targetting the main branch.  Since this workflow doesn't normally
3# run on main PRs, we need some way to test it to ensure new updates
4# don't break it.
5
6name: LLVM Workflow Test
7
8permissions:
9  contents: read
10
11on:
12  pull_request:
13    branches:
14      - 'main'
15    paths:
16      - '.github/workflows/llvm-project-tests.yml'
17      - '.github/workflows/llvm-project-workflow-tests.yml'
18
19concurrency:
20  # Skip intermediate builds: always.
21  # Cancel intermediate builds: only if it is a pull request build.
22  group: ${{ github.workflow }}-${{ github.ref }}
23  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
24
25jobs:
26  llvm-test:
27    if: github.repository_owner == 'llvm'
28    name: Build and Test
29    uses: ./.github/workflows/llvm-project-tests.yml
30    with:
31      build_target: check-all
32      projects: clang;lld;libclc;lldb
33