From 62e7328a2db215d8be69cf0553bda7b78c8de0a3 Mon Sep 17 00:00:00 2001 From: Ronny Trommer Date: Wed, 17 Jul 2024 18:03:48 +0200 Subject: [PATCH] feat: Move from CircleCI to GitHub actions Add GitHub actions workflow using free tier and remove CircleCI instructions. Resolve: #53 --- .circleci/config.yml | 22 ---------------------- .github/workflows/ansible-opennms-lint.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 22 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/ansible-opennms-lint.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index ddc0634..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -version: 2.1 - -executors: - build-executor: - docker: - - image: quay.io/labmonkeys/vmbuilder:1.9.3.b66 - -workflows: - build-workflow: - jobs: - - validation - -jobs: - validation: - executor: build-executor - steps: - - checkout - - run: - name: Validate with Ansible lint - command: | - ansible-lint diff --git a/.github/workflows/ansible-opennms-lint.yml b/.github/workflows/ansible-opennms-lint.yml new file mode 100644 index 0000000..7618025 --- /dev/null +++ b/.github/workflows/ansible-opennms-lint.yml @@ -0,0 +1,18 @@ +--- +name: ansible-opennms-lint +run-name: Validate the Ansible playbook +on: + workflow_dispatch: + push: + +jobs: + ansible-lint: + runs-on: ubuntu-latest + container: + image: quay.io/labmonkeys/vmbuilder:1.9.3.b66 + steps: + - uses: actions/checkout@v4 + - name: Add workspace to git safe.directory + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: Run ansible lint + run: ansible-lint