diff options
author | Florian Schmaus <flow@gentoo.org> | 2023-02-20 17:33:10 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2023-03-16 15:48:30 +0100 |
commit | cddc1bd5020f27cfde1965f33de125c19c1d196e (patch) | |
tree | 00ed5d0fd254b4a6854a6ee35cd2e97b117ff7a0 /.github | |
parent | Add Makefile(s) with 'check' target (diff) | |
download | api-cddc1bd5020f27cfde1965f33de125c19c1d196e.tar.gz api-cddc1bd5020f27cfde1965f33de125c19c1d196e.tar.bz2 api-cddc1bd5020f27cfde1965f33de125c19c1d196e.zip |
Add github ci.yaml
Closes: https://github.com/gentoo/api-gentoo-org/pull/575
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 19 | ||||
-rw-r--r-- | .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 |