Create lint.yml action file.

This will replace Travis-CI.
This commit is contained in:
waddlesplash
2022-03-23 17:01:31 -04:00
committed by GitHub
parent 7e4f67a561
commit d3f790eb92

34
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Lint
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Build:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os:
- ubuntu-18.04
python-version:
- '3.7'
steps:
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v2
with:
python-version: '${{ matrix.python-version }}'
- uses: actions/checkout@v2
- run: >-
cd .. && git clone https://github.com/haikuports/haikuporter.git --depth=1 && cd haikuports
- run: 'PATH=$PATH:../haikuporter && export PATH'
- run: >-
printf 'TREE_PATH="'`pwd`'"\nPACKAGER="Nobody <server@fake>"\nTARGET_ARCHITECTURE="x86"\n' >haikuports.conf
- run: >-
wget https://github.com/waddlesplash/haiku-licenses/archive/master.zip
&& unzip master.zip
- run: >-
./lint-new-recipes.sh --config=haikuports.conf
--licenses=haiku-licenses-master