1name: Lint
2'on':
3#  push:
4#    branches:
5#      - master
6  pull_request:
7    branches:
8      - master
9jobs:
10  Build:
11    runs-on: '${{ matrix.os }}'
12    strategy:
13      matrix:
14        os:
15          - ubuntu-22.04
16        python-version:
17          - '3.10'
18    steps:
19      - name: 'Set up Python ${{ matrix.python-version }}'
20        uses: actions/setup-python@v2
21        with:
22          python-version: '${{ matrix.python-version }}'
23      - uses: actions/checkout@v2
24      - name: 'Set up HaikuPorter'
25        run: |
26          cd .. && git clone https://github.com/haikuports/haikuporter.git --depth=1 && cd haikuports
27          printf 'TREE_PATH="'`pwd`'"\nPACKAGER="Nobody <server@fake>"\nTARGET_ARCHITECTURE="x86"\n' >haikuports.conf
28          wget https://github.com/waddlesplash/haiku-licenses/archive/master.zip && unzip master.zip
29          echo "$(pwd)/../haikuporter" >> $GITHUB_PATH
30      - name: 'Let HaikuPorter update local repository data'
31        run: |
32          haikuporter --config=haikuports.conf --licenses=haiku-licenses-master --repository-update --quiet
33      - name: 'Lint new recipes'
34        run: |
35          ./.github/lint-new-recipes.sh --config=haikuports.conf --licenses=haiku-licenses-master
36