From d6d36322e71c29c9cd8b8619ce55f32aedaf1ae4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ga=C3=ABtan=20Duchaussois?= Date: Mon, 1 Mar 2021 18:33:54 +0100 Subject: [PATCH] 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 }}" -- 2.41.0