mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: Lint
|
|
'on':
|
|
# push:
|
|
# branches:
|
|
# - master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
Build:
|
|
runs-on: '${{ matrix.os }}'
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-24.04
|
|
python-version:
|
|
- '3.10'
|
|
steps:
|
|
- name: 'Set up Python ${{ matrix.python-version }}'
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '${{ matrix.python-version }}'
|
|
- uses: actions/checkout@v2
|
|
- name: 'Set up HaikuPorter'
|
|
run: |
|
|
cd .. && git clone https://github.com/haikuports/haikuporter.git --depth=1 && cd haikuports
|
|
printf 'TREE_PATH="'`pwd`'"\nPACKAGER="Nobody <server@fake>"\nTARGET_ARCHITECTURE="x86"\n' >haikuports.conf
|
|
wget https://github.com/waddlesplash/haiku-licenses/archive/master.zip && unzip master.zip
|
|
echo "$(pwd)/../haikuporter" >> $GITHUB_PATH
|
|
- name: 'Let HaikuPorter update local repository data'
|
|
run: |
|
|
haikuporter --config=haikuports.conf --licenses=haiku-licenses-master --repository-update --quiet
|
|
- name: 'Lint new recipes'
|
|
run: |
|
|
./.github/lint-new-recipes.sh --config=haikuports.conf --licenses=haiku-licenses-master
|