From: Gaƫtan Duchaussois Date: Mon, 1 Mar 2021 17:33:54 +0000 (+0100) Subject: add github action CI X-Git-Tag: v0.1.0~2^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=d6d36322e71c29c9cd8b8619ce55f32aedaf1ae4;p=github%2Ffretlink%2Fansible-netdata_straight.git add github action CI --- 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 }}"