]> git.immae.eu Git - github/fretlink/ansible-netdata_straight.git/commitdiff
add github action CI
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Mon, 1 Mar 2021 17:33:54 +0000 (18:33 +0100)
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Wed, 14 Apr 2021 13:11:45 +0000 (15:11 +0200)
.github/workflows/pr.yml [new file with mode: 0644]
molecule/default/converge.yml

diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
new file mode 100644 (file)
index 0000000..42a6a4e
--- /dev/null
@@ -0,0 +1,31 @@
+---
+name: test
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      max-parallel: 4
+      matrix:
+        molecule-os:
+          - ubuntu:18.04
+          - ubuntu:20.04
+          - debian:10
+        netdata-installer:
+          - kickstart
+          - kickstart-static64
+
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          path: "${{ github.repository }}"
+      - uses: gofrolist/molecule-action@v2
+        env:
+          MOLECULE_OS: ${{ matrix.molecule-os }}
+          MOLECULE_NETDATA_INSTALLER: ${{ matrix.netdata-installer }}
index 20810f028cf117e7f560416d68d8dc38cba61053..37f6dea287e58fcf99196677087a94cc8a3962e4 100644 (file)
@@ -4,4 +4,4 @@
   tasks:
     - name: "Include netdata-straight"
       include_role:
-        name: "netdata_straight"
+        name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"