diff options
-rw-r--r-- | .github/workflows/pr.yml | 33 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | molecule/default/converge.yml | 2 |
3 files changed, 35 insertions, 1 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..dfd5489 --- /dev/null +++ b/.github/workflows/pr.yml | |||
@@ -0,0 +1,33 @@ | |||
1 | --- | ||
2 | name: test | ||
3 | on: | ||
4 | push: | ||
5 | branches: | ||
6 | - master | ||
7 | pull_request: | ||
8 | branches: | ||
9 | - master | ||
10 | jobs: | ||
11 | build: | ||
12 | runs-on: ubuntu-latest | ||
13 | strategy: | ||
14 | max-parallel: 4 | ||
15 | matrix: | ||
16 | molecule-os: | ||
17 | - ubuntu:18.04 | ||
18 | - ubuntu:20.04 | ||
19 | - debian:10 | ||
20 | - centos:8 | ||
21 | - fedora:latest | ||
22 | netdata-installer: | ||
23 | - kickstart | ||
24 | - kickstart-static64 | ||
25 | |||
26 | steps: | ||
27 | - uses: actions/checkout@v2 | ||
28 | with: | ||
29 | path: "${{ github.repository }}" | ||
30 | - uses: gofrolist/molecule-action@v2 | ||
31 | env: | ||
32 | MOLECULE_OS: ${{ matrix.molecule-os }} | ||
33 | MOLECULE_NETDATA_INSTALLER: ${{ matrix.netdata-installer }} | ||
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16d3c4d --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1 @@ | |||
.cache | |||
diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index 20810f0..37f6dea 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml | |||
@@ -4,4 +4,4 @@ | |||
4 | tasks: | 4 | tasks: |
5 | - name: "Include netdata-straight" | 5 | - name: "Include netdata-straight" |
6 | include_role: | 6 | include_role: |
7 | name: "netdata_straight" | 7 | name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" |