add local roles to general roles #65
Workflow file for this run
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: Integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
working-directory: ansible_collections/ethpandaops/general | |
jobs: | |
# Job for change detection | |
changes: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
roles: ${{ steps.filter.outputs.changes }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
blockscout: roles/blockscout/** | |
# Integration test using molecule | |
job: | |
needs: changes | |
concurrency: | |
group: ${{ github.head_ref }}-${{ matrix.role }} | |
cancel-in-progress: true | |
strategy: | |
matrix: | |
role: ${{ fromJSON(needs.changes.outputs.roles) }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: ansible_collections/ethpandaops/general | |
- uses: ./ansible_collections/ethpandaops/general/.github/actions/setup | |
- name: Run molecule | |
working-directory: ansible_collections/ethpandaops/general/roles/${{ matrix.role }} | |
run: molecule test | |
env: | |
PY_COLORS: '1' |