commit:     cddc1bd5020f27cfde1965f33de125c19c1d196e
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 20 16:33:10 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Mar 16 14:48:30 2023 +0000
URL:        https://gitweb.gentoo.org/data/api.git/commit/?id=cddc1bd5

Add github ci.yaml

Closes: https://github.com/gentoo/api-gentoo-org/pull/575
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 .github/workflows/ci.yml           | 19 +++++++++++++++++++
 .github/workflows/repositories.yml | 19 -------------------
 2 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..df409dc
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,19 @@
+name: CI
+on: [push]
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v3
+      - name: Install dependencies
+        run: |
+          sudo apt update
+          sudo apt install libxml2-utils
+      - uses: actions/setup-python@v4
+        with:
+          python-version: '3.x'
+      - name: Install pip dependencies
+        run: pip install lxml
+      - name: Check
+        run: make check

diff --git a/.github/workflows/repositories.yml 
b/.github/workflows/repositories.yml
index dae070f..df5d534 100644
--- a/.github/workflows/repositories.yml
+++ b/.github/workflows/repositories.yml
@@ -24,22 +24,3 @@ jobs:
       run: |
         BASE_REF=$(git merge-base --fork-point origin/${{ github.base_ref }})
         python bin/repositories-checker.py --github <(git show 
${BASE_REF}:files/overlays/repositories.xml) files/overlays/repositories.xml
-
-  validate-schema:
-    runs-on: ubuntu-latest
-    steps:
-
-    - name: Checkout
-      uses: actions/checkout@v2
-
-    - name: Download repositories.xml schema
-      run: wget 
https://gitweb.gentoo.org/data/xml-schema.git/plain/repositories.xsd
-
-    - name: Prepare xmllint annotator
-      uses: korelstar/xmllint-problem-matcher@v1
-
-    - name: Lint repositories.xml
-      uses: ChristophWurst/xmllint-action@v1
-      with:
-        xml-file: ./files/overlays/repositories.xml
-        xml-schema-file: ./repositories.xsd

Reply via email to