diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..225fd78d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +--- +name: CI +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] +jobs: + ubuntu-22: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4.1.7 + with: + fetch-depth: 0 + - name: Run playbook + run: | + sudo apt-add-repository --yes --update ppa:ansible/ansible + sudo apt-get update + sudo apt-get install ansible -y + ansible --version + ansible-galaxy install -r requirements.yml + ansible-galaxy install git+file:///home/runner/work/ansible-role-jenkins + ansible-playbook molecule/resources/prepare.yml + ansible-playbook molecule/default/playbook.yml diff --git a/requirements.yml b/requirements.yml index e6224319..c0ab4367 100755 --- a/requirements.yml +++ b/requirements.yml @@ -1,2 +1,4 @@ --- -- src: lean_delivery.java +- name: lean_delivery.java + src: https://github.com/lean-delivery/ansible-role-java + version: 7.2.2