Skip to content

Commit

Permalink
ci: tests: GitHub Action unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atar13 committed Apr 13, 2024
1 parent 22d9b01 commit 8c66ae9
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Test

on:
push:
branches:
- dev
pull_request:

jobs:
client-windows:
name: Client on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake -G "Unix Makefiles" ..
- name: Build
run: cd build && make run_client_tests
client-linux:
name: Client on Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake ..
- name: Build
run: cd build && make run_client_tests
server-windows:
name: Server on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake -G "Unix Makefiles" ..
- name: Build
run: cd build && make run_server_tests
server-linux:
name: Server on Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake ..
- name: Build
run: cd build && make run_server_tests
shared-windows:
name: Shared on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake -G "Unix Makefiles" ..
- name: Build
run: cd build && make run_shared_tests
shared-linux:
name: Shared on Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake ..
- name: Build
run: cd build && make run_shared_tests

0 comments on commit 8c66ae9

Please sign in to comment.