From e1bc281139865df744df2487d9421d32eac43400 Mon Sep 17 00:00:00 2001
From: Scott K Logan <logans@cottsay.net>
Date: Wed, 26 Jan 2022 10:48:10 -0800
Subject: [PATCH] Validate configuration changes using ros_buildfarm script
 (#203)

---
 .github/workflows/ci.yaml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 .github/workflows/ci.yaml

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 00000000..e9f91b7d
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,22 @@
+%YAML 1.1
+---
+name: Run tests
+
+on:  # yamllint disable-line rule:truthy
+  push:
+    branches: ['master', 'production', 'ros2']
+  pull_request:
+
+jobs:
+  validate:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - uses: actions/checkout@v2
+      with:
+        repository: ros-infrastructure/ros_buildfarm
+        path: ros_buildfarm
+    - name: Validate buildfarm configuration
+      env:
+        PYTHONPATH: ${{github.workspace}}/ros_buildfarm
+      run: ${{github.workspace}}/ros_buildfarm/scripts/misc/validate_config_index.py file://${{github.workspace}}/index.yaml