]>
Commit | Line | Data |
---|---|---|
d6d36322 GD |
1 | --- |
2 | name: test | |
3 | on: | |
4 | push: | |
5 | branches: | |
6 | - master | |
7 | pull_request: | |
8 | branches: | |
9 | - master | |
032453fd GD |
10 | release: |
11 | types: [created, edited, published] | |
d6d36322 | 12 | jobs: |
8916f8fa | 13 | molecule_default: |
d6d36322 GD |
14 | runs-on: ubuntu-latest |
15 | strategy: | |
16 | max-parallel: 4 | |
17 | matrix: | |
18 | molecule-os: | |
19 | - ubuntu:18.04 | |
20 | - ubuntu:20.04 | |
21 | - debian:10 | |
836e6fc4 GD |
22 | - centos:8 |
23 | - fedora:latest | |
d6d36322 GD |
24 | netdata-installer: |
25 | - kickstart | |
26 | - kickstart-static64 | |
27 | ||
28 | steps: | |
29 | - uses: actions/checkout@v2 | |
30 | with: | |
31 | path: "${{ github.repository }}" | |
32 | - uses: gofrolist/molecule-action@v2 | |
33 | env: | |
34 | MOLECULE_OS: ${{ matrix.molecule-os }} | |
35 | MOLECULE_NETDATA_INSTALLER: ${{ matrix.netdata-installer }} | |
8916f8fa GD |
36 | molecule_features: |
37 | runs-on: ubuntu-latest | |
38 | steps: | |
39 | - uses: actions/checkout@v2 | |
40 | with: | |
41 | path: "${{ github.repository }}" | |
42 | - uses: gofrolist/molecule-action@v2 | |
43 | with: | |
44 | molecule_args: --scenario-name features | |
032453fd GD |
45 | publish: |
46 | runs-on: ubuntu-latest | |
47 | needs: | |
48 | - molecule_default | |
49 | - molecule_features | |
50 | if: ${{ github.event_name == 'release' }} | |
51 | steps: | |
52 | - uses: actions/checkout@v2 | |
53 | - name: Upload to ansible-galaxy | |
54 | uses: robertdebock/galaxy-action@1.1.0 | |
55 | with: | |
56 | galaxy_api_key: '${{ secrets.GALAXY_API_KEY }}' |