netboot.xyz/.github/workflows/pull-requests.yml
Antony Messerli 3830da6bb2 Switch to using Github Actions
With the recent changes to Travis CI, it seemed
like a good time to begin porting netboot.xyz CI
over to Github Actions to keep everything in on
place.  These are the changes for the main
netboot.xyz repo.
2020-12-06 12:00:14 -06:00

42 lines
793 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@v2
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ansible ansible-lint
- name: Syntax Check
run: |
ansible-playbook -i inventory site.yml --syntax-check
- name: Ansible lint
run: |
ansible-lint -v roles/netbootxyz
build-pr:
name: Build Pull Request
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Build PR release
run: |
./script/build_release pr