diff mbox series

[2/6] github: add GitHub action to run CI tests

Message ID 20250114193628.16290-3-oss@braunwarth.dev
State Accepted
Headers show
Series Add GitHub actions | expand

Commit Message

Daniel Braunwarth Jan. 14, 2025, 7:36 p.m. UTC
This GitHub action is triggered on every push and runs the CI tests in
the following containers:

- Ubuntu 22.04
- Ubuntu 24.04
- Debian Bookworm
- Debian Testing

This enables every contributor to check if changes to SWUpdate are valid
or causing problems on any of the distributions.

Signed-off-by: Daniel Braunwarth <oss@braunwarth.dev>
---
 .github/workflows/ci_tests.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 .github/workflows/ci_tests.yml
diff mbox series

Patch

diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml
new file mode 100644
index 0000000..6f71b14
--- /dev/null
+++ b/.github/workflows/ci_tests.yml
@@ -0,0 +1,27 @@ 
+# SPDX-FileCopyrightText: 2025 Daniel Braunwarth <oss@braunwarth.dev>
+#
+# SPDX-License-Identifier: MIT
+name: CI tests
+
+on:
+  push
+
+jobs:
+  test:
+    strategy:
+        fail-fast: false
+        matrix:
+          container:
+          - ubuntu:22.04
+          - ubuntu:24.04
+          - debian:bookworm-slim
+          - debian:testing-slim
+    name: ${{ matrix.container }}
+    runs-on: ubuntu-24.04
+    container: ${{ matrix.container }}
+    steps:
+    - uses: actions/checkout@v4
+    - name: Install dependencies
+      run: ./ci/setup.sh
+    - name: Run tests
+      run: ./ci/test-configs.sh