-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from gcotelli/pharo11
Add Pharo 11 to build matrix
- Loading branch information
Showing
15 changed files
with
316 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.st linguist-language=Smalltalk | ||
*.st eol=lf | ||
*.st text diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Baseline Groups | ||
|
||
on: [push,pull_request,workflow_dispatch] | ||
|
||
jobs: | ||
group-loading: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
smalltalk: [ Pharo64-11, Pharo64-10, Pharo64-9.0, Pharo64-8.0, Pharo64-7.0 ] | ||
load-spec: [ deployment, tests, tools, development ] | ||
name: ${{ matrix.smalltalk }} + ${{ matrix.load-spec }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-image: ${{ matrix.smalltalk }} | ||
- name: Load group in image | ||
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalkci/loading.${{ matrix.load-spec }}.ston | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
timeout-minutes: 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Markdown Lint | ||
on: [push,pull_request,workflow_dispatch] | ||
jobs: | ||
remark-lint: | ||
name: runner / markdownlint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: markdownlint | ||
uses: reviewdog/action-markdownlint@v0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
fail_on_error: true | ||
reporter: github-pr-review |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Unit Tests | ||
|
||
on: [push,pull_request,workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
smalltalk: [ Pharo64-11, Pharo64-10, Pharo64-9.0, Pharo64-8.0, Pharo64-7.0 ] | ||
name: ${{ matrix.smalltalk }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Smalltalk CI | ||
uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-image: ${{ matrix.smalltalk }} | ||
- name: Load Image and Run Tests | ||
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalkci/unit-tests.ston | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
timeout-minutes: 15 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: Unit-Tests-${{matrix.smalltalk}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Teapot', | ||
#directory : '../source', | ||
#load : [ 'Deployment' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#testing : { | ||
#failOnZeroTests : false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Teapot', | ||
#directory : '../source', | ||
#load : [ 'Development' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#testing : { | ||
#coverage : { | ||
#packages : [ 'Teapot*' ], | ||
#format: #lcov | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Teapot', | ||
#directory : '../source', | ||
#load : [ 'Tools' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#testing : { | ||
#failOnZeroTests : false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Teapot', | ||
#directory : '../source', | ||
#load : [ 'Tests' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#testing : { | ||
#coverage : { | ||
#packages : [ 'Teapot*' ], | ||
#format: #lcov | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,57 @@ | ||
# Teapot | ||
|
||
Teapot is micro web framework for [Pharo Smalltalk](https://pharo.org) on top of the [Zinc HTTP components](https://github.com/svenvc/zinc), that focuses on simplicity and ease of use. It's around 600 lines of code, not counting the tests. | ||
Teapot is micro web framework for [Pharo Smalltalk](https://pharo.org) on top of | ||
the [Zinc HTTP components](https://github.com/svenvc/zinc), that focuses on | ||
simplicity and ease of use. It's around 600 lines of code, not counting the tests. | ||
|
||
**[Explore the docs](/docs)** | ||
|
||
[![Build Status](https://travis-ci.com/zeroflag/Teapot.svg?branch=master)](https://travis-ci.com/zeroflag/Teapot) | ||
[![Coverage Status](https://coveralls.io/repos/github/zeroflag/Teapot/badge.svg?branch=master)](https://coveralls.io/github/zeroflag/Teapot?branch=master) | ||
[![Unit Tests](https://github.com/zeroflag/Teapot/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/zeroflag/Teapot/actions/workflows/unit-tests.yml/badge.svg) | ||
[![Coverage Status](https://codecov.io/github/zeroflag/Teapot/coverage.svg?branch=master)](https://codecov.io/gh/zeroflag/Teapot/branch/master) | ||
[![Baseline Groups](https://github.com/zeroflag/Teapot/actions/workflows/loading-groups.yml/badge.svg)](https://github.com/zeroflag/Teapot/actions/workflows/loading-groups.yml) | ||
[![Markdown Lint](https://github.com/zeroflag/Teapot/actions/workflows/markdown-lint.yml/badge.svg)](https://github.com/zeroflag/Teapot/actions/workflows/markdown-lint.yml) | ||
|
||
> *Name origin*: [418 I'm a teapot](http://en.wikipedia.org/wiki/List_of_HTTP_status_codes) (RFC 2324) is an HTTP status code. | ||
[![GitHub release](https://img.shields.io/github/release/zeroflag/Teapot.svg)](https://github.com/zeroflag/Teapot/releases/latest) | ||
[![Pharo 9.0](https://img.shields.io/badge/Pharo-9.0-informational)](https://pharo.org) | ||
[![Pharo 10](https://img.shields.io/badge/Pharo-10-informational)](https://pharo.org) | ||
[![Pharo 11](https://img.shields.io/badge/Pharo-11-informational)](https://pharo.org) | ||
|
||
This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol. The RFC specifies this code should be returned by tea pots requested to brew coffee. | ||
> *Name origin*: [418 I'm a teapot](http://en.wikipedia.org/wiki/List_of_HTTP_status_codes) | ||
> (RFC 2324) is an HTTP status code. | ||
This code was defined in 1998 as one of the traditional IETF April Fools' jokes, | ||
in RFC 2324, Hyper Text Coffee Pot Control Protocol. The RFC specifies this code | ||
should be returned by tea pots requested to brew coffee. | ||
|
||
## License | ||
|
||
- The code is licensed under [MIT](LICENSE). | ||
- The documentation is licensed under [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/). | ||
|
||
## Quick Start | ||
|
||
- Download the latest [Pharo 32](https://get.pharo.org/) or [64 bits VM](https://get.pharo.org/64/). | ||
- Download the latest [Pharo 64 bits VM](https://get.pharo.org/64/). | ||
- Download a ready to use image from the [release page](http://github.com/zeroflag/Teapot/releases/latest) | ||
- Explore the [documentation](docs/). | ||
|
||
``` | ||
```smalltalk | ||
Metacello new | ||
baseline: 'Teapot'; | ||
repository: 'github://zeroflag/Teapot/source'; | ||
load. | ||
baseline: 'Teapot'; | ||
repository: 'github://zeroflag/Teapot/source'; | ||
load. | ||
``` | ||
|
||
|
||
## Installation | ||
|
||
To load the project in a Pharo image, or declare it as a dependency of your own project follow this [instructions](docs/Installation.md) | ||
To load the project in a Pharo image, or declare it as a dependency of your own | ||
project follow this [instructions](docs/Installation.md) | ||
|
||
## Contributing | ||
|
||
Check the [Contribution Guidelines](CONTRIBUTING.md) | ||
|
||
## Other | ||
|
||
If you want to lively work with Teapot or quickly implement REST services with it we recommend to have a look at the [Tealight project](https://github.com/astares/Tealight) - a thin layer on top of Teapot to quickly experiment and deliver | ||
If you want to lively work with Teapot or quickly implement REST services with | ||
it, we recommend having a look at the [Tealight project](https://github.com/astares/Tealight) | ||
a thin layer on top of Teapot to quickly experiment and deliver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.