Skip to content

Commit 5addc74

Browse files
ci: Add GitHub Action for running SCIP tests. (#2)
* ci: Add GitHub Action for running SCIP tests. * test: path.append joins with a separator. For very C++ reasons, there is also 'concat' which does not add a separator.
1 parent 17e1ee3 commit 5addc74

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- scip-ruby/master
6+
pull_request:
7+
branches:
8+
- scip-ruby/master
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Install Bazel
16+
run: sudo npm install --location=global @bazel/bazelisk
17+
- name: Mount bazel cache
18+
uses: actions/cache@v3
19+
with:
20+
path: "$HOME/.cache/bazel"
21+
key: bazel
22+
- name: Run tests
23+
run: ./bazel test --test_output=errors //test/scip --config=dbg

test/scip_test_runner.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ TEST_CASE("SCIPTest") {
292292
using Provider = pipeline::semantic_extension::SemanticExtensionProvider;
293293

294294
auto indexFilePath = filesystem::temp_directory_path();
295-
indexFilePath.concat(test.basename + ".scip"); // FIXME(varun): Update for folder tests with multiple files?
295+
indexFilePath.append(test.basename + ".scip"); // FIXME(varun): Update for folder tests with multiple files?
296296

297297
auto providers = Provider::getProviders();
298298
ENFORCE(providers.size() == 1);

0 commit comments

Comments
 (0)