mirror of
https://github.com/johndoe6345789/MetalOS.git
synced 2026-05-04 02:24:59 +00:00
c82c872132
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
39 lines
685 B
YAML
39 lines
685 B
YAML
name: Unit Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, copilot/* ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
unit-tests:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
|
|
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 test execution completed"
|