diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0e4e788 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + pull_request: + +permissions: + contents: read + +jobs: + build-and-unit: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + timeout-minutes: 15 + + steps: + - uses: actions/checkout@v4 + + - name: Install deps (Ubuntu) + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install -y lsof + + - name: Build + run: make clean && make + + - name: Unit tests + run: make test-unit + + integration: + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - uses: actions/checkout@v4 + + - name: Install deps + run: sudo apt-get update && sudo apt-get install -y lsof + + - name: Build + run: make clean && make + + - name: Integration tests + run: make test-integration