Skip to content

Commit

Permalink
Create unit_test_auto.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
silabs-bingocth authored Sep 30, 2024
1 parent ff9204b commit b23772f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/unit_test_auto.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Unit Tests Auto Trigger
on:
push:

jobs:
job1:
name: Unit test
runs-on: ubuntu-20.04
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Check working directory
run: |
pwd
mkdir test_tool
ls -la
- name: Download a file
uses: valitydev/[email protected]
with:
# URL to file
url: https://github.com/Kitware/CMake/releases/download/v3.30.4/cmake-3.30.4-linux-x86_64.sh
# Target path
target-path: test_tool/
- name: Download a file
uses: valitydev/[email protected]
with:
# URL to file
url: https://github.com/Kitware/CMake/releases/download/v3.30.4/cmake-3.30.4-linux-x86_64.tar.gz
# Target path
target-path: test_tool/
- name: Prepare Test Environment
run: |
cd test_tool
chmod +x cmake-3.30.4-linux-x86_64.sh
./cmake-3.30.4-linux-x86_64.sh
- name: Unit Testing
run: |
make prepare
cd build
cmake --toolchain ../cmake/toolchain.cmake .. -DENABLE_UNIT_TESTING=ON -DBOARD_NAME=brd4187c
cmake --build . --target unit_tests -j4

0 comments on commit b23772f

Please sign in to comment.