aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-03-01 18:33:54 +0100
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-04-14 15:11:45 +0200
commitd6d36322e71c29c9cd8b8619ce55f32aedaf1ae4 (patch)
treeabc1ed30adcfaf092c738c5f978ca71ec6a45084
parent08e40e4a45d715a367dbd60e3fe89553ce479d2c (diff)
downloadansible-netdata_straight-d6d36322e71c29c9cd8b8619ce55f32aedaf1ae4.tar.gz
ansible-netdata_straight-d6d36322e71c29c9cd8b8619ce55f32aedaf1ae4.tar.zst
ansible-netdata_straight-d6d36322e71c29c9cd8b8619ce55f32aedaf1ae4.zip
add github action CI
-rw-r--r--.github/workflows/pr.yml31
-rw-r--r--molecule/default/converge.yml2
2 files changed, 32 insertions, 1 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
new file mode 100644
index 0000000..42a6a4e
--- /dev/null
+++ b/.github/workflows/pr.yml
@@ -0,0 +1,31 @@
1---
2name: test
3on:
4 push:
5 branches:
6 - master
7 pull_request:
8 branches:
9 - master
10jobs:
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 netdata-installer:
21 - kickstart
22 - kickstart-static64
23
24 steps:
25 - uses: actions/checkout@v2
26 with:
27 path: "${{ github.repository }}"
28 - uses: gofrolist/molecule-action@v2
29 env:
30 MOLECULE_OS: ${{ matrix.molecule-os }}
31 MOLECULE_NETDATA_INSTALLER: ${{ matrix.netdata-installer }}
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 }}"