Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/namcap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check PKGBUILDs

on: [push, pull_request]

jobs:
namcap:

runs-on: ubuntu-latest
container:
image: archlinux

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install packages
run: |
pacman -Syu python python-pip git base-devel --noconfirm --needed
- name: Prepare namcap
run: |
git clone https://github.com/angelofallars/namcap.git
pip install --upgrade pip
pip install -r namcap/requirements.txt
- name: Install namcap
working-directory: namcap
run: python setup.py install

- name: Check PKGBUILDs with namcap
run: |
python namcap/traverse_directory_tree.py