From d2beaf4517c85c731ce42ad80a164c2a540d3f6b Mon Sep 17 00:00:00 2001 From: Ansh Agrawal Date: Sun, 1 Mar 2026 00:46:20 -0700 Subject: [PATCH 1/2] ci: add github actions build and test workflow --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3d8052d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + 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 From cf22f0ff5c058e7c00746fefa1b00e3800ee5c0d Mon Sep 17 00:00:00 2001 From: Ansh Agrawal Date: Sun, 1 Mar 2026 00:50:16 -0700 Subject: [PATCH 2/2] ci: trigger workflow only on pull requests --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d8052d..0e4e788 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,6 @@ name: CI on: - push: pull_request: permissions: