From 09039c142a54c30a622deede7b5a9dafd8872a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Mon, 4 May 2020 15:50:31 -0300 Subject: [PATCH 01/11] Add build github action --- workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 workflows/build.yml diff --git a/workflows/build.yml b/workflows/build.yml new file mode 100644 index 00000000..2d3d90c4 --- /dev/null +++ b/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build + +on: + pull_request: + push: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + smalltalk: [ Pharo64-8.0, Pharo64-7.0, Pharo32-7.0, Pharo32-6.1 ] + name: ${{ matrix.smalltalk }} + steps: + - uses: actions/checkout@v2 + - uses: nijel/rabbitmq-action@v1.0.0 + with: + rabbitmq version: '3-latest' + - uses: ba-st-actions/setup-smalltalkCI@v1.0.0 + with: + smalltalk-version: ${{ matrix.smalltalk }} + - run: smalltalkci -s ${{ matrix.smalltalk }} + timeout-minutes: 15 + - run: echo "::set-env name=SCI_COVERAGE_FILE_LOCATION::${HOME}/.smalltalkCI/_builds/coveralls_results.json" + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1.0.6 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ${{ env.SCI_COVERAGE_FILE_LOCATION }} From 42947d9cf509bd114ae803dc57e23cac395d7eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Mon, 4 May 2020 16:42:43 -0300 Subject: [PATCH 02/11] Fix misplaced workflows folder --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..2d3d90c4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build + +on: + pull_request: + push: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + smalltalk: [ Pharo64-8.0, Pharo64-7.0, Pharo32-7.0, Pharo32-6.1 ] + name: ${{ matrix.smalltalk }} + steps: + - uses: actions/checkout@v2 + - uses: nijel/rabbitmq-action@v1.0.0 + with: + rabbitmq version: '3-latest' + - uses: ba-st-actions/setup-smalltalkCI@v1.0.0 + with: + smalltalk-version: ${{ matrix.smalltalk }} + - run: smalltalkci -s ${{ matrix.smalltalk }} + timeout-minutes: 15 + - run: echo "::set-env name=SCI_COVERAGE_FILE_LOCATION::${HOME}/.smalltalkCI/_builds/coveralls_results.json" + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1.0.6 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ${{ env.SCI_COVERAGE_FILE_LOCATION }} From 1e17a1b1821e76267448a0c9e432f5f6e06fddc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Mon, 4 May 2020 17:13:10 -0300 Subject: [PATCH 03/11] Change to use rabbitmq as a service --- .github/workflows/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d3d90c4..3313600c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,8 +4,14 @@ on: pull_request: push: +services: + rabbitmq: + image: rabbitmq3 + ports: + - 5672:5672 + jobs: - build: + build: runs-on: ubuntu-latest strategy: matrix: @@ -13,9 +19,6 @@ jobs: name: ${{ matrix.smalltalk }} steps: - uses: actions/checkout@v2 - - uses: nijel/rabbitmq-action@v1.0.0 - with: - rabbitmq version: '3-latest' - uses: ba-st-actions/setup-smalltalkCI@v1.0.0 with: smalltalk-version: ${{ matrix.smalltalk }} From de31b550c671b9b3f0274d0e792c70d5c19fe26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Mon, 4 May 2020 17:28:41 -0300 Subject: [PATCH 04/11] Fix rabbitmq image tag --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3313600c..297aef09 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,11 +4,6 @@ on: pull_request: push: -services: - rabbitmq: - image: rabbitmq3 - ports: - - 5672:5672 jobs: build: @@ -17,6 +12,11 @@ jobs: matrix: smalltalk: [ Pharo64-8.0, Pharo64-7.0, Pharo32-7.0, Pharo32-6.1 ] name: ${{ matrix.smalltalk }} + services: + rabbitmq: + image: rabbitmq:latest + ports: + - 5672:5672 steps: - uses: actions/checkout@v2 - uses: ba-st-actions/setup-smalltalkCI@v1.0.0 From a80239bccb9893fcedfec6f705c4f17f4d4bf6e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Mon, 4 May 2020 17:56:59 -0300 Subject: [PATCH 05/11] Add health check to rabbitmq --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 297aef09..06be60f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,8 @@ jobs: rabbitmq: image: rabbitmq:latest ports: - - 5672:5672 + - 5672 + options: --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: actions/checkout@v2 - uses: ba-st-actions/setup-smalltalkCI@v1.0.0 From c4f35592ae30692015717602fba1e6848e0cdbae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Mon, 4 May 2020 18:01:59 -0300 Subject: [PATCH 06/11] Fix rabbitmq listening port --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 06be60f0..e3c9483b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: rabbitmq: image: rabbitmq:latest ports: - - 5672 + - 5672/tcp options: --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: actions/checkout@v2 From 5cd733d18d913c1321e7d586e5c10adfb39f32ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Mon, 4 May 2020 18:06:35 -0300 Subject: [PATCH 07/11] Reverse rabbitmq port directive to drop restriction to just tcp --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3c9483b..da0c0d45 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: rabbitmq: image: rabbitmq:latest ports: - - 5672/tcp + - 5672:5672 options: --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: actions/checkout@v2 From 808db62f77df8bab7b9e84255024e599be9c85fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Tue, 5 May 2020 10:44:03 -0300 Subject: [PATCH 08/11] Delete travis file and replace badges --- .travis.yml | 30 ------------------------------ README.md | 4 ++-- workflows/build.yml | 29 ----------------------------- 3 files changed, 2 insertions(+), 61 deletions(-) delete mode 100644 .travis.yml delete mode 100644 workflows/build.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 739619ab..00000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: smalltalk - -sudo: required - -services: - - docker - -before_script: - - docker pull rabbitmq:3 - - docker run -d --name rabbit-tests -p5672:5672 rabbitmq:3 - - docker ps -a - - sleep 10 - -after_failure: - - docker inspect --format='{{.LogPath}}' rabbit-tests | sudo xargs cat - -os: - - linux - -smalltalk: - - Pharo32-7.0 - - Pharo64-7.0 - - Pharo32-8.0 - - Pharo64-8.0 - -matrix: - allow_failures: - - smalltalk: Pharo32-8.0 - - smalltalk: Pharo64-8.0 - fash_finish: true diff --git a/README.md b/README.md index 9eb4e183..52604d5f 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@

[![GitHub release](https://img.shields.io/github/release/ba-st/Ansible.svg)](https://github.com/ba-st/Ansible/releases/latest) -[![Build Status](https://travis-ci.com/ba-st/Ansible.svg?branch=release-candidate)](https://travis-ci.com/ba-st/Ansible) -[![Coverage Status](https://coveralls.io/repos/github/ba-st/Ansible/badge.svg?branch=release-candidate)](https://coveralls.io/github/ba-st/Ansible?branch=release-candidate) +[![Build Status](https://github.com/ba-st/Ansible/workflow/Build/badge.svg?branch=release-candidate)](https://github.com/ba-st/Ansible/actions?query=workflow%3Build) +[![Coverage Status](https://codecov.io/gh/ba-st/Ansible/coverage.svg?branch=release-candidate)](https://coveralls.io/github/ba-st/Ansible?branch=release-candidate) >*An [ansible](https://en.wikipedia.org/wiki/Ansible) is a fictional device capable of near-instantaneus communication. It can send and receive message to and from a corresponding device over any distance or obstable whatsover with no delay even betwenn star systems.* diff --git a/workflows/build.yml b/workflows/build.yml deleted file mode 100644 index 2d3d90c4..00000000 --- a/workflows/build.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Build - -on: - pull_request: - push: - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - smalltalk: [ Pharo64-8.0, Pharo64-7.0, Pharo32-7.0, Pharo32-6.1 ] - name: ${{ matrix.smalltalk }} - steps: - - uses: actions/checkout@v2 - - uses: nijel/rabbitmq-action@v1.0.0 - with: - rabbitmq version: '3-latest' - - uses: ba-st-actions/setup-smalltalkCI@v1.0.0 - with: - smalltalk-version: ${{ matrix.smalltalk }} - - run: smalltalkci -s ${{ matrix.smalltalk }} - timeout-minutes: 15 - - run: echo "::set-env name=SCI_COVERAGE_FILE_LOCATION::${HOME}/.smalltalkCI/_builds/coveralls_results.json" - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1.0.6 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ${{ env.SCI_COVERAGE_FILE_LOCATION }} From 1d4a0cb22b506304a77f0bf272add28fd649ff02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Tue, 5 May 2020 11:53:52 -0300 Subject: [PATCH 09/11] Improve README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 52604d5f..5f22b4e4 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,11 @@

[![GitHub release](https://img.shields.io/github/release/ba-st/Ansible.svg)](https://github.com/ba-st/Ansible/releases/latest) -[![Build Status](https://github.com/ba-st/Ansible/workflow/Build/badge.svg?branch=release-candidate)](https://github.com/ba-st/Ansible/actions?query=workflow%3Build) +[![Build Status](https://github.com/ba-st/Ansible/workflows/Build/badge.svg?branch=release-candidate)](https://github.com/ba-st/Ansible/actions?query=workflow%3ABuild) [![Coverage Status](https://codecov.io/gh/ba-st/Ansible/coverage.svg?branch=release-candidate)](https://coveralls.io/github/ba-st/Ansible?branch=release-candidate) +[![Pharo 6.1](https://img.shields.io/badge/Pharo-6.1-informational)](https://pharo.org) +[![Pharo 7.0](https://img.shields.io/badge/Pharo-7.0-informational)](https://pharo.org) +[![Pharo 8.0](https://img.shields.io/badge/Pharo-8.0-informational)](https://pharo.org) >*An [ansible](https://en.wikipedia.org/wiki/Ansible) is a fictional device capable of near-instantaneus communication. It can send and receive message to and from a corresponding device over any distance or obstable whatsover with no delay even betwenn star systems.* From 84ed91c57ed9ce4684bbc5c94d2ea92ed579e52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= <90245+fortizpenaloza@users.noreply.github.com> Date: Tue, 5 May 2020 16:28:16 -0300 Subject: [PATCH 10/11] Fix typo in packages included in coverage --- .smalltalk.ston | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.smalltalk.ston b/.smalltalk.ston index 9272e435..d9203b34 100644 --- a/.smalltalk.ston +++ b/.smalltalk.ston @@ -9,7 +9,7 @@ SmalltalkCISpec { ], #testing : { #coverage : { - #packages : [ 'AMQP*' ] + #packages : [ 'Amqp*' ] } } } From 2e99f70b1bff8c810618b545af9cbf138f09b09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ortiz=20Pe=C3=B1aloza?= Date: Wed, 6 May 2020 14:35:41 -0300 Subject: [PATCH 11/11] Add notify github action --- .github/workflows/notify.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/notify.yml diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml new file mode 100644 index 00000000..b4543c27 --- /dev/null +++ b/.github/workflows/notify.yml @@ -0,0 +1,17 @@ +name: Release Notifications + +on: + release: + types: [published] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Notify about a new release + uses: ba-st-actions/email-release-notification@v3.1.1 + env: + SENDGRID_API_TOKEN: ${{ secrets.SENDGRID_API_TOKEN }} + RECIPIENTS_URL: ${{ secrets.RECIPIENTS_URL }} + DISTRIBUTION_LISTS: ${{ secrets.DISTRIBUTION_LISTS }} + SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }}