From d6d36322e71c29c9cd8b8619ce55f32aedaf1ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Mon, 1 Mar 2021 18:33:54 +0100 Subject: add github action CI --- .github/workflows/pr.yml | 31 +++++++++++++++++++++++++++++++ molecule/default/converge.yml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr.yml 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 @@ +--- +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 }} 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 @@ tasks: - name: "Include netdata-straight" include_role: - name: "netdata_straight" + name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" -- cgit v1.2.3 From 836e6fc49e2094b02d2b8a714c91465c376deb31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Tue, 2 Mar 2021 11:52:21 +0100 Subject: ci: add redhat based --- .github/workflows/pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 42a6a4e..dfd5489 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -17,6 +17,8 @@ jobs: - ubuntu:18.04 - ubuntu:20.04 - debian:10 + - centos:8 + - fedora:latest netdata-installer: - kickstart - kickstart-static64 -- cgit v1.2.3 From a6f6a9a9b666bea23302e35037564d5b1993b464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Wed, 14 Apr 2021 15:11:24 +0200 Subject: add gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16d3c4d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.cache -- cgit v1.2.3