From c1edc50979779d440004d0ddbaac1bf460bd7bf9 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 17:21:29 +0000 Subject: [PATCH 01/10] Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..7bb7a0df6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +name: CI + +on: + push: + branches: + - develop + - hotfix/** + - release/** + - test/** + pull_request: + workflow_dispatch: + +jobs: + build: + # We use this virtual environment because it supports nested virtualization. + # See https://github.com/actions/virtual-environments/issues/433 for more + # information + runs-on: macos-12 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Cache Vagrant boxes + # Caches that are not accessed within the last week will be evicted + # (see https://github.com/actions/cache#cache-limits) + uses: actions/cache@v3 + with: + path: ~/.vagrant.d/boxes + key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }} + restore-keys: | + ${{ runner.os }}-vagrant- + + - name: Set up Python 3 + uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - name: Set up Ansible + run: pip3 install ansible + + - name: Set up Vagrant + run: vagrant plugin install vagrant-disksize + + - name: Vagrant base box update + run: vagrant box update + + - name: Vagrant up + run: ./scripts/vagrant-up.sh + + - name: Test + run: ./scripts/test.sh + + - name: Halt the VM + run: vagrant halt From c4e46ae29fddc6e2cf3aeb2e87b29f70d74c83f4 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 17:38:45 +0000 Subject: [PATCH 02/10] fixup! Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bb7a0df6..360c2ed20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,12 @@ jobs: run: pip3 install ansible - name: Set up Vagrant - run: vagrant plugin install vagrant-disksize + run: | + vagrant plugin install vagrant-disksize + mkdir /etc/vbox + echo " + * 192.168.56.0/21 + * 33.33.0.0/16" | tee /etc/vbox/networks.conf - name: Vagrant base box update run: vagrant box update From ff4ad8fa2eb1c27f08757aff77b90dc3b6e4df60 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 17:41:38 +0000 Subject: [PATCH 03/10] fixup! Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 360c2ed20..82a4f6236 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,15 +36,15 @@ jobs: python-version: "3.x" - name: Set up Ansible - run: pip3 install ansible + run: pip3 install ansible==2.9.* - name: Set up Vagrant run: | vagrant plugin install vagrant-disksize - mkdir /etc/vbox + sudo mkdir /etc/vbox echo " * 192.168.56.0/21 - * 33.33.0.0/16" | tee /etc/vbox/networks.conf + * 33.33.0.0/16" | sudo tee /etc/vbox/networks.conf - name: Vagrant base box update run: vagrant box update From e5a78b0da2baa0d62194781353c626ca0e82a5d6 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 17:48:21 +0000 Subject: [PATCH 04/10] fixup! Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82a4f6236..e3e4b3eb2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,12 +35,13 @@ jobs: with: python-version: "3.x" - - name: Set up Ansible - run: pip3 install ansible==2.9.* + # - name: Set up Ansible + # run: pip3 install ansible==2.9.* - name: Set up Vagrant run: | vagrant plugin install vagrant-disksize + mkdir ~/.aws sudo mkdir /etc/vbox echo " * 192.168.56.0/21 From 483d0cb1f2479af53cc74ea18b701d504371420c Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 17:52:11 +0000 Subject: [PATCH 05/10] fixup! Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3e4b3eb2..14ef78a2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,8 +35,8 @@ jobs: with: python-version: "3.x" - # - name: Set up Ansible - # run: pip3 install ansible==2.9.* + - name: Set up Ansible + run: pip3 install ansible==2.9.* - name: Set up Vagrant run: | From ff287f0e80c0624f41c50f77b3cc997223f7fe65 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 18:56:58 +0000 Subject: [PATCH 06/10] fixup! Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14ef78a2a..05625a9d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,26 +35,29 @@ jobs: with: python-version: "3.x" - - name: Set up Ansible - run: pip3 install ansible==2.9.* + - name: Figure out Vagrant + run: ls ~/.vagrant.d/boxes/ + + # - name: Set up Ansible + # run: pip3 install ansible==2.9.* - - name: Set up Vagrant - run: | - vagrant plugin install vagrant-disksize - mkdir ~/.aws - sudo mkdir /etc/vbox - echo " - * 192.168.56.0/21 - * 33.33.0.0/16" | sudo tee /etc/vbox/networks.conf + # - name: Set up Vagrant + # run: | + # vagrant plugin install vagrant-disksize + # mkdir ~/.aws + # sudo mkdir /etc/vbox + # echo " + # * 192.168.56.0/21 + # * 33.33.0.0/16" | sudo tee /etc/vbox/networks.conf - - name: Vagrant base box update - run: vagrant box update + # - name: Vagrant base box update + # run: vagrant box update - - name: Vagrant up - run: ./scripts/vagrant-up.sh + # - name: Vagrant up + # run: ./scripts/vagrant-up.sh - - name: Test - run: ./scripts/test.sh + # - name: Test + # run: ./scripts/test.sh - - name: Halt the VM - run: vagrant halt + # - name: Halt the VM + # run: vagrant halt From 524d71bfdaed7f2aaa417a22cddb7857553698d0 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 18:58:34 +0000 Subject: [PATCH 07/10] fixup! Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05625a9d4..81632d90e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: python-version: "3.x" - name: Figure out Vagrant - run: ls ~/.vagrant.d/boxes/ + run: vagrant box list # - name: Set up Ansible # run: pip3 install ansible==2.9.* From ff1b73573e970b5f0a99b5f7ff0c4b37dfd25c89 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 19:01:00 +0000 Subject: [PATCH 08/10] fixup! Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81632d90e..14ef78a2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,29 +35,26 @@ jobs: with: python-version: "3.x" - - name: Figure out Vagrant - run: vagrant box list - - # - name: Set up Ansible - # run: pip3 install ansible==2.9.* + - name: Set up Ansible + run: pip3 install ansible==2.9.* - # - name: Set up Vagrant - # run: | - # vagrant plugin install vagrant-disksize - # mkdir ~/.aws - # sudo mkdir /etc/vbox - # echo " - # * 192.168.56.0/21 - # * 33.33.0.0/16" | sudo tee /etc/vbox/networks.conf + - name: Set up Vagrant + run: | + vagrant plugin install vagrant-disksize + mkdir ~/.aws + sudo mkdir /etc/vbox + echo " + * 192.168.56.0/21 + * 33.33.0.0/16" | sudo tee /etc/vbox/networks.conf - # - name: Vagrant base box update - # run: vagrant box update + - name: Vagrant base box update + run: vagrant box update - # - name: Vagrant up - # run: ./scripts/vagrant-up.sh + - name: Vagrant up + run: ./scripts/vagrant-up.sh - # - name: Test - # run: ./scripts/test.sh + - name: Test + run: ./scripts/test.sh - # - name: Halt the VM - # run: vagrant halt + - name: Halt the VM + run: vagrant halt From dda1c4b4dd2a74d5b1b06a8b8a8221b50aa1acb4 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 19:21:36 +0000 Subject: [PATCH 09/10] fixup! Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14ef78a2a..d0d89fef4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,26 +35,29 @@ jobs: with: python-version: "3.x" - - name: Set up Ansible - run: pip3 install ansible==2.9.* + - name: Vagrant Inspect + run: vboxmanage list systemproperties + + # - name: Set up Ansible + # run: pip3 install ansible==2.9.* - - name: Set up Vagrant - run: | - vagrant plugin install vagrant-disksize - mkdir ~/.aws - sudo mkdir /etc/vbox - echo " - * 192.168.56.0/21 - * 33.33.0.0/16" | sudo tee /etc/vbox/networks.conf + # - name: Set up Vagrant + # run: | + # vagrant plugin install vagrant-disksize + # mkdir ~/.aws + # sudo mkdir /etc/vbox + # echo " + # * 192.168.56.0/21 + # * 33.33.0.0/16" | sudo tee /etc/vbox/networks.conf - - name: Vagrant base box update - run: vagrant box update + # - name: Vagrant base box update + # run: vagrant box update - - name: Vagrant up - run: ./scripts/vagrant-up.sh + # - name: Vagrant up + # run: ./scripts/vagrant-up.sh - - name: Test - run: ./scripts/test.sh + # - name: Test + # run: ./scripts/test.sh - - name: Halt the VM - run: vagrant halt + # - name: Halt the VM + # run: vagrant halt From 84ab3b5729728a2745029a69414ad2aa920249a0 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 30 Dec 2022 19:26:24 +0000 Subject: [PATCH 10/10] fixup! Add CI GitHub Actions workflow --- .github/workflows/ci.yml | 49 +++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0d89fef4..a091ea792 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,34 +30,41 @@ jobs: restore-keys: | ${{ runner.os }}-vagrant- + - name: Cache Vagrant VMs + # Caches that are not accessed within the last week will be evicted + # (see https://github.com/actions/cache#cache-limits) + uses: actions/cache@v3 + with: + path: "~/VirtualBox VMs" + key: ${{ runner.os }}-vagrant-vms-${{ hashFiles('Vagrantfile') }} + restore-keys: | + ${{ runner.os }}-vagrant-vms- + - name: Set up Python 3 uses: actions/setup-python@v4 with: python-version: "3.x" - - name: Vagrant Inspect - run: vboxmanage list systemproperties - - # - name: Set up Ansible - # run: pip3 install ansible==2.9.* + - name: Set up Ansible + run: pip3 install ansible==2.9.* - # - name: Set up Vagrant - # run: | - # vagrant plugin install vagrant-disksize - # mkdir ~/.aws - # sudo mkdir /etc/vbox - # echo " - # * 192.168.56.0/21 - # * 33.33.0.0/16" | sudo tee /etc/vbox/networks.conf + - name: Set up Vagrant + run: | + vagrant plugin install vagrant-disksize + mkdir ~/.aws + sudo mkdir /etc/vbox + echo " + * 192.168.56.0/21 + * 33.33.0.0/16" | sudo tee /etc/vbox/networks.conf - # - name: Vagrant base box update - # run: vagrant box update + - name: Vagrant base box update + run: vagrant box update - # - name: Vagrant up - # run: ./scripts/vagrant-up.sh + - name: Vagrant up + run: ./scripts/vagrant-up.sh - # - name: Test - # run: ./scripts/test.sh + - name: Test + run: ./scripts/test.sh - # - name: Halt the VM - # run: vagrant halt + - name: Halt the VM + run: vagrant halt