|
| 1 | +# This workflows runs your tests as specified in your .smalltalk.ston configuration file. |
| 2 | + |
| 3 | +name: Run tests |
| 4 | + |
| 5 | +on: |
| 6 | +# Only one trigger is necessary, keep only the ones you need. Default branch is set by default, change it according to your needs. |
| 7 | +# Find more information here: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows |
| 8 | + push: |
| 9 | + branches: [ "master" ] |
| 10 | + pull_request: |
| 11 | + branches: [ "master" ] |
| 12 | + |
| 13 | +jobs: |
| 14 | + run: |
| 15 | + uses: moosetechnology/.github/.github/workflows/run-tests.yml@main |
| 16 | + secrets: inherit |
| 17 | +# Optional inputs: un-comment the lines below. See documentation in the next commented paragraph. |
| 18 | + with: |
| 19 | + pharo-versions: "[ 'Moose64-trunk' ]" |
| 20 | +# create-artifact: true |
| 21 | +# image-name: "" |
| 22 | +# pre-upload-script: "" |
| 23 | + run-coverage: true # Don't forget to modify your .smalltalk.ston file! |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +############ INPUTS DOCUMENTATION ############ |
| 28 | + |
| 29 | +# pharo-version: |
| 30 | +# An array of strings corresponding to a Pharo or Moose image. |
| 31 | +# Default is the Pharo versions compatible with the latest Moose version. |
| 32 | +# Alternatively, you can: |
| 33 | +# - set the value of this option with valid Pharo or Moose versions (always an array, even if you set only 1 image). See available images here: https://github.com/hpi-swa/smalltalkCI?tab=readme-ov-file#images |
| 34 | +# - assign a Moose version to your branch using repository variables. See https://github.com/moosetechnology/.github?tab=readme-ov-file#use-different-values-for-specfic-branches |
| 35 | +# The default Pharo version will then be the available Pharo versions corresponding to this Moose version. |
| 36 | + |
| 37 | +# create-artifact: |
| 38 | +# A boolean. |
| 39 | +# Default is false. |
| 40 | +# Set it to true to build an artifact containing all the files necessary to run your image locally. Note that smalltalkCI will be deleted from this image. |
| 41 | + |
| 42 | +# image-name: |
| 43 | +# A string. |
| 44 | +# If create-artifact is set to true, this will be the beginning of the name of the artifact and the image in it. |
| 45 | +# The full name of each artifact will be <imagename>-<pharo-version>. This way you get an artifact per pharo version used. |
| 46 | +# Default value: <RepositoryName-branchName> |
| 47 | +# Alternatively, you can: |
| 48 | +# - set the value of this option to a name valid for all branches targeted by your workflow |
| 49 | +# - assign an image name to your branch using repository variables. See https://github.com/moosetechnology/.github?tab=readme-ov-file#use-different-values-for-specfic-branches |
| 50 | + |
| 51 | +# pre-upload-script: |
| 52 | +# A string that can be executed in Pharo. |
| 53 | +# If create-artifact is set to true, this will be executed in the image after the tests are run and before uploading the artifact. |
| 54 | +# It is mostly used when you need to register information from the workflow run. For example, store commit ID. |
| 55 | +# If you do not need workflow information, you can instead use smalltalkCI custom scripts: https://github.com/hpi-swa/smalltalkCI?tab=readme-ov-file#custom-scripts |
| 56 | +# Default value: "" |
| 57 | + |
| 58 | +# run-coverage: |
| 59 | +# Compute coverage using Coveralls. |
| 60 | +# See https://github.com/hpi-swa/smalltalkCI/blob/master/docs/COVERAGE.md for more documentation. |
| 61 | +# Be sure to run on packages or classes in the repository (not loaded via dependency) |
0 commit comments