Skip to content

Commit 0012520

Browse files
authored
Enable tests on CI (#125)
Signed-off-by: Keith Smiley <[email protected]>
1 parent 01d099e commit 0012520

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
on: [push, pull_request]
1+
on:
2+
push:
3+
branches: [main]
4+
pull_request:
25

36
name: Continuous integration
47

@@ -46,14 +49,18 @@ jobs:
4649

4750
- name: "LLVM: Build"
4851
if: steps.llvm-cache.outputs.cache-hit != 'true'
49-
run: cd llvm/build && ninja libIndexStore.dylib
52+
run: cd llvm/build && ninja libIndexStore.dylib FileCheck
5053

5154
- name: "index-import: CMake"
5255
run: mkdir build && cmake -B build -G Ninja -DClang_DIR=./llvm/build/lib/cmake/clang/ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
5356

5457
- name: "index-import: Build"
5558
run: cd build && ninja
5659

60+
- name: "index-import: test"
61+
run: |
62+
PATH=$PWD/llvm/build/bin:$PATH ./tests/run.sh
63+
5764
# For local development, use the playground at
5865
# https://rhysd.github.io/actionlint/
5966
actionlint:

0 commit comments

Comments
 (0)