Skip to content

Commit b3878a5

Browse files
seanmakesgamesFayti1703
authored andcommitted
integrate test into actions
1 parent dd6d272 commit b3878a5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ jobs:
118118
- name: Inject V8
119119
run: |
120120
./libexec/inject-libv8 ${{ steps.set-metadata.outputs.NODE_VERSION }}
121+
- name: Test V8 in C++
122+
run: |
123+
cd test/gtest
124+
cmake -S . -B build
125+
cd build
126+
cmake --build .
127+
./c_v8_tests
121128
- name: Build binary gem
122129
run: |
123130
bundle exec rake binary
@@ -245,6 +252,9 @@ jobs:
245252
- name: Inject V8
246253
run: |
247254
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ./libexec/inject-libv8 ${{ steps.set-metadata.outputs.NODE_VERSION }}
255+
- name: Test V8 in C++
256+
run: |
257+
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} bash -c "cd test/gtest && cmake -S . -B build && cd build && cmake --build . && ctest"
248258
- name: Build binary gem
249259
run: |
250260
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} bundle exec rake binary[${{ steps.platform.outputs.ruby_target_platform }}]

0 commit comments

Comments
 (0)