Added pull trigger for CI testing #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: | ||
on: | ||
pull_request: | ||
branches: [main, v2-dev] | ||
pulls: | ||
branches: [main, v2-dev] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: ./ansible_collections/skupper/v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
cache: 'pip' | ||
- name: Install ansible, ansible-lint, yamllint | ||
run: pip3 install yamllint ansible ansible-lint virtualenv | ||
- name: Run ansible-lint | ||
run: cd ansible_collections/skupper/v2 && make ansible-lint | ||
- name: Run sanity tests | ||
run: cd ansible_collections/skupper/v2 && make sanity-tests | ||
- name: Run unit tests | ||
run: cd ansible_collections/skupper/v2 && make unit | ||
- name: Run integration tests | ||
run: cd ansible_collections/skupper/v2 && make integration | ||