Skip to content

Commit

Permalink
add integration tests in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chyzh committed Feb 29, 2024
1 parent 5636e8e commit 838ebce
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CMake on multiple platforms

on:
push:
branches: [ "master" ]
branches: [ "master", "integration_tests_github_actions" ]
pull_request:
branches: [ "master" ]

Expand Down Expand Up @@ -83,3 +83,18 @@ jobs:
shell: cmd
run: .\testbpatch.exe

- name: Integration Tests on Ubuntu
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
if: matrix.os=='ubuntu-latest'
run: |
chmod +x IntegrationTests/in_tests.sh
./IntegrationTests/in_tests.sh ${{ steps.strings.outputs.build-output-dir }}/bpatch
- name: Integration Tests on Windows
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
if: matrix.os=='windows-latest'
shell: cmd
run: ./IntegrationTests/in_tests.cmd ${{ steps.strings.outputs.build-output-dir }}/${{ matrix.build_type }}/bpatch.exe

0 comments on commit 838ebce

Please sign in to comment.