From 7089ad7243204d08f640c3a58f4764b9d2879f4a Mon Sep 17 00:00:00 2001 From: Pierre Laborde <49183340+labordep@users.noreply.github.com> Date: Thu, 2 Nov 2023 12:41:49 +0100 Subject: [PATCH] deploy CI and edit readme scripts --- .github/workflows/Tests.yml | 28 ++++++++++++++++++++++++++++ .smalltalk.ston | 15 +++++++++++++++ README.md | 24 ++++++++++++++++++++++-- 3 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/Tests.yml create mode 100644 .smalltalk.ston diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml new file mode 100644 index 0000000..578c88e --- /dev/null +++ b/.github/workflows/Tests.yml @@ -0,0 +1,28 @@ +name: 'Tests' + +on: + push: + branches: + - 'master' + pull_request: + types: [assigned, opened, synchronize, reopened] + +jobs: + build: + strategy: + matrix: + os: [ ubuntu-latest, macos-latest, windows-latest ] + smalltalk: [ Pharo64-11, Pharo64-12 ] + runs-on: ${{ matrix.os }} + name: ${{ matrix.smalltalk }} on ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: hpi-swa/setup-smalltalkCI@v1 + with: + smalltalk-image: ${{ matrix.smalltalk }} + - name: Load in New Image and Run Tests + run: smalltalkci -s ${{ matrix.smalltalk }} ${{ matrix.ston }} + shell: bash + timeout-minutes: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.smalltalk.ston b/.smalltalk.ston new file mode 100644 index 0000000..92c9983 --- /dev/null +++ b/.smalltalk.ston @@ -0,0 +1,15 @@ +SmalltalkCISpec { + #loading : [ + SCIMetacelloLoadSpec { + #baseline : 'Album', + #directory : 'src', + #onConflict : #useIncoming, + #platforms : [ #pharo ] + } + ], + #testing : { + #include : { + #packages : [ 'Album*-Tests' ] + } + } +} diff --git a/README.md b/README.md index 2f3deb0..e1f0a59 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,30 @@ +[![License](https://img.shields.io/github/license/plantec/Album.svg)](./LICENSE) + +[![Tests](https://github.com/plantec/Album/actions/workflows/Tests.yml/badge.svg?branch=master)](https://github.com/plantec/Album/actions/workflows/Tests.yml) +[![Pharo 11](https://img.shields.io/badge/Pharo-11-%23aac9ff.svg)](https://pharo.org/download) +[![Pharo 12](https://img.shields.io/badge/Pharo-12-%23aac9ff.svg)](https://pharo.org/download) + # Album -A fork of the Brick editor. + +Album is a text editor library based on Bloc. +Album provide functions to create widgets with advanced text edition features as input field, text area, etc. + +Originaly forked from Brick project editor. + +## Installation + +To install the latest version of Album in Pharo you just need to execute the following script: ```Smalltalk Metacello new baseline: 'Album'; - repository: 'github://plantec/Album/src'; + repository: 'github://plantec/Album:master/src'; onConflictUseIncoming; load ``` + +To add in your project BaselineOf: + +```Smalltalk +spec baseline: 'Album' with: [ spec repository: 'github://plantec/Album:master/src' ]. +``` \ No newline at end of file