mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-08-24 02:34:12 -05:00
46 lines
1008 B
YAML
46 lines
1008 B
YAML
name: pull-requests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- development
|
|
- RC
|
|
- master
|
|
|
|
jobs:
|
|
test-pr:
|
|
name: Test Pull Request
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: actions/setup-python@v7
|
|
with:
|
|
python-version: '3.14' # renovate: datasource=github-tags depName=python
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install ansible==13.6.0 # renovate: datasource=pypi depName=ansible
|
|
pip install ansible-lint==26.4.0 # renovate: datasource=pypi depName=ansible-lint
|
|
|
|
- name: Syntax Check
|
|
run: |
|
|
ansible-playbook site.yml --syntax-check
|
|
|
|
- name: Ansible lint
|
|
run: |
|
|
ansible-lint -v roles/netbootxyz/tasks
|
|
|
|
build-pr:
|
|
name: Build Pull Request
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: actions/setup-python@v7
|
|
|
|
- name: Build PR release
|
|
run: |
|
|
./script/build_release pr
|