aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-01-03 11:03:39 +0100
committerAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-01-03 11:06:58 +0100
commit3dff7190aaca940e315230a21dd296d2af0dfe2c (patch)
treee3b9f51b0e9f5c3a77fc4bad4707494258c3602a /.github
parentx11-misc/i3lock-color: sort dependencies (diff)
downloadguru-3dff7190aaca940e315230a21dd296d2af0dfe2c.tar.gz
guru-3dff7190aaca940e315230a21dd296d2af0dfe2c.tar.bz2
guru-3dff7190aaca940e315230a21dd296d2af0dfe2c.zip
.github/workflows: add pkgcheck and repoman checks
Lets see if this will work like this Thanks to the ::science overlay Bug: https://github.com/gentoo/guru/issues/16 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pkgcheck.yml31
-rw-r--r--.github/workflows/repoman.yml34
2 files changed, 65 insertions, 0 deletions
diff --git a/.github/workflows/pkgcheck.yml b/.github/workflows/pkgcheck.yml
new file mode 100644
index 000000000..188f9db63
--- /dev/null
+++ b/.github/workflows/pkgcheck.yml
@@ -0,0 +1,31 @@
+name: pkgcheck
+
+on:
+ push:
+ branches: [ dev ]
+ pull_request:
+ branches: [ dev ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python 3.9
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.9
+ - name: Install pkgcheck
+ run: |
+ python -m pip install --upgrade pip
+ pip install pkgcheck
+ - name: Setup master gentoo repository
+ run: |
+ sudo mkdir -p /var/db/repos/gentoo /etc/portage /var/cache/distfiles
+ wget -qO - "https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz" | sudo tar xz -C /var/db/repos/gentoo --strip-components=1
+ sudo wget "https://www.gentoo.org/dtd/metadata.dtd" -O /var/cache/distfiles/metadata.dtd
+ sudo wget "https://gitweb.gentoo.org/proj/portage.git/plain/cnf/repos.conf" -O /etc/portage/repos.conf
+ sudo ln -s /var/db/repos/gentoo/profiles/default/linux/amd64/17.0 /etc/portage/make.profile
+ - name: Test with pkgcheck
+ run: |
+ pkgcheck scan --exit --check=-RedundantVersionCheck,-VisibilityCheck
diff --git a/.github/workflows/repoman.yml b/.github/workflows/repoman.yml
new file mode 100644
index 000000000..c5fd25ece
--- /dev/null
+++ b/.github/workflows/repoman.yml
@@ -0,0 +1,34 @@
+name: repoman
+
+on:
+ push:
+ branches: [ dev ]
+ pull_request:
+ branches: [ dev ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python 3.9
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.9
+ - name: Setup repoman
+ run: |
+ python -m pip install --upgrade pip
+ pip install lxml pyyaml
+ wget -qO - "https://github.com/gentoo/portage/archive/portage-3.0.12.tar.gz" | tar xz
+ sudo groupadd -g 250 portage
+ sudo useradd -g portage -d /var/tmp/portage -s /bin/false -u 250 portage
+ - name: Setup master gentoo repository
+ run: |
+ sudo mkdir -p /var/db/repos/gentoo /etc/portage /var/cache/distfiles
+ wget -qO - "https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz" | sudo tar xz -C /var/db/repos/gentoo --strip-components=1
+ sudo wget "https://www.gentoo.org/dtd/metadata.dtd" -O /var/cache/distfiles/metadata.dtd
+ sudo wget "https://gitweb.gentoo.org/proj/portage.git/plain/cnf/repos.conf" -O /etc/portage/repos.conf
+ sudo ln -s /var/db/repos/gentoo/profiles/default/linux/amd64/17.0 /etc/portage/make.profile
+ - name: Test with repoman
+ run: |
+ python3 portage-portage-3.0.12/repoman/bin/repoman full -dx