aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml24
1 files changed, 22 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e18a721..d65168c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -33,14 +33,34 @@ jobs:
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
shell: bash
- run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
+ run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE:STRING=$BUILD_TYPE -DBUILD_MOCK:BOOL=ON
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- - name: Get environment feedback
+ - name: Test `wine list`
+ working-directory: ${{runner.workspace}}/build
+ shell: bash
+ run: ./polecat_mock wine list
+
+ - name: Test `dxvk list`
+ working-directory: ${{runner.workspace}}/build
+ shell: bash
+ run: ./polecat_mock dxvk list
+
+ - name: Test `lutris search`
+ working-directory: ${{runner.workspace}}/build
+ shell: bash
+ run: ./polecat_mock lutris search game
+
+ - name: Get mock environment
+ working-directory: ${{runner.workspace}}/build
+ shell: bash
+ run: ./polecat_mock env
+
+ - name: Get environment
working-directory: ${{runner.workspace}}/build
shell: bash
run: ./polecat env \ No newline at end of file