Skip to content

Commit

Permalink
ci: add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierChanth committed Oct 1, 2024
1 parent 9421613 commit e609b41
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/c_unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: C Unit Tests

on:
workflow_dispatch:
push:
branches: [trunk]
pull_request:
branches: [trunk]

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
unit-tests:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: atsdk Unit CTest
working-directory: packages/c
run: |
cmake -S . -B build -DSSHNPD_BUILD_TESTS=ON
cmake --build build
ctest --test-dir build/sshnpd/tests --output-on-failure --timeout 2

0 comments on commit e609b41

Please sign in to comment.