-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (45 loc) · 1.25 KB
/
integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
if: ${{ needs.changes.outputs.roles != '' && toJson(fromJson(needs.changes.outputs.roles)) != '[]' }}
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'