forked from haikuports/haikuports
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.2 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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