Files
MetalOS/.github/workflows/unit-tests.yml
2025-12-28 18:06:13 +00:00

43 lines
786 B
YAML

name: Unit Tests
on:
push:
branches: [ main, copilot/* ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential
- name: Build unit tests
run: |
cd tests
make all
- name: Run unit tests
run: |
cd tests
make test
- name: Test summary
if: always()
run: |
echo "Unit tests completed"
if [ $? -eq 0 ]; then
echo "✓ All tests passed"
else
echo "✗ Some tests failed"
exit 1
fi