Skip to content

Commit

Permalink
Add CI badge to README and update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
kdauer committed Aug 4, 2022
1 parent 39974bb commit 691c700
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
name: smalltalkCI

on:
- push
- workflow_dispatch
on: [push, pull_request, workflow_dispatch]

jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
smalltalk:
#- Squeak64-trunk # to be reenabled soon
- Squeak64-5.3
name: Test ${{ matrix.smalltalk }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#- Squeak64-5.2
name: Test ${{ matrix.smalltalk }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-version: ${{ matrix.smalltalk }}
smalltalk-image: ${{ matrix.smalltalk }}
- run: smalltalkci -s ${{ matrix.smalltalk }}
shell: bash
timeout-minutes: 15
env:
# for uploading coverage reports
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Poppy Print

![CI](https://github.com/hpi-swa-teaching/poppy-print/actions/workflows/tests.yml/badge.svg)

A small, opinionated pretty printer for Squeak/Smalltalk. Tested with Squeak6-trunk and Squeak5.3.

> NOTE: this is a beta release. The printer may accidentally produce malformed code at this point. Please report any misbehavior you notice.
### Install

```smalltalk
Metacello new baseline: 'PoppyPrint'; repository: 'github://tom95/poppy-print/packages'; load.
```

If you want to use Poppy Print instead of the default pretty printer, run:

```smalltalk
Behavior compile: 'prettyPrinterClass ^ PPFormatter'.
" undo: "
Expand Down

0 comments on commit 691c700

Please sign in to comment.