diff options
author | 2020-12-21 01:57:13 +0000 | |
---|---|---|
committer | 2020-12-21 01:57:13 +0000 | |
commit | 97d31c9d96c86f8af67ca702307a2d6724b9712f (patch) | |
tree | 1faf41cc83e65135b46b3f82e91ab3ef73f46ba3 /.github | |
parent | metadata/news/2020-12-20-visa-packages-removed (diff) | |
download | sci-97d31c9d96c86f8af67ca702307a2d6724b9712f.tar.gz sci-97d31c9d96c86f8af67ca702307a2d6724b9712f.tar.bz2 sci-97d31c9d96c86f8af67ca702307a2d6724b9712f.zip |
move from repoman travis to github pkgcheck workflow
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/pkgcheck.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/pkgcheck.yml b/.github/workflows/pkgcheck.yml new file mode 100644 index 000000000..1e665e954 --- /dev/null +++ b/.github/workflows/pkgcheck.yml @@ -0,0 +1,31 @@ +name: pkgcheck + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +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 |