[Workflow] Try to fix code-formatter failing to find changes in some cases.
[llvm-project.git] / .github / workflows / clang-tests.yml
blob2569ce19518e3e3e5c6d929aa44a66c126e23a01
1 name: Clang Tests
3 permissions:
4   contents: read
6 on:
7   workflow_dispatch:
8   push:
9     branches:
10       - 'release/**'
11     paths:
12       - 'clang/**'
13       - '.github/workflows/clang-tests.yml'
14       - '.github/workflows/llvm-project-tests.yml'
15       - '!llvm/**'
16   pull_request:
17     branches:
18       - 'release/**'
19     paths:
20       - 'clang/**'
21       - '.github/workflows/clang-tests.yml'
22       - '.github/workflows/llvm-project-tests.yml'
23       - '!llvm/**'
25 concurrency:
26   # Skip intermediate builds: always.
27   # Cancel intermediate builds: only if it is a pull request build.
28   group: ${{ github.workflow }}-${{ github.ref }}
29   cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
31 jobs:
32   check_clang:
33     if: github.repository_owner == 'llvm'
34     name: Test clang,lldb,libclc
35     uses: ./.github/workflows/llvm-project-tests.yml
36     with:
37       build_target: check-clang
38       projects: clang;lldb;libclc