Skip to content

Commit

Permalink
CI: Install Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Darbord authored Oct 24, 2024
1 parent cca6b19 commit e2f5827
Showing 1 changed file with 12 additions and 51 deletions.
63 changes: 12 additions & 51 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,22 @@
# This workflows runs your tests as specified in your .smalltalk.ston configuration file.

name: Tests

on:
# Only one trigger is necessary, keep only the ones you need. Default branch is set by default, change it according to your needs.
# Find more information here: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
run:
uses: moosetechnology/.github/.github/workflows/run-tests.yml@main
secrets: inherit
# Optional inputs: un-comment the lines below. See documentation in the next commented paragraph.
with:
run-coverage: true
# pharo-versions: "[ 'Moose64-trunk' ]"
# create-artifact: true
# image-name: ""
# pre-upload-script: ""



############ INPUTS DOCUMENTATION ############

# pharo-version:
# An array of strings corresponding to a Pharo or Moose image.
# Default is the Pharo versions compatible with the latest Moose version.
# Alternatively, you can:
# - 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
# - 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
# The default Pharo version will then be the available Pharo versions corresponding to this Moose version.

# create-artifact:
# A boolean.
# Default is false.
# 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.

# image-name:
# A string.
# If create-artifact is set to true, this will be the beginning of the name of the artifact and the image in it.
# The full name of each artifact will be <imagename>-<pharo-version>. This way you get an artifact per pharo version used.
# Default value: <RepositoryName-branchName>
# Alternatively, you can:
# - set the value of this option to a name valid for all branches targeted by your workflow
# - 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

# pre-upload-script:
# A string that can be executed in Pharo.
# If create-artifact is set to true, this will be executed in the image after the tests are run and before uploading the artifact.
# It is mostly used when you need to register information from the workflow run. For example, store commit ID.
# 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
# Default value: ""

# run-coverage:
# Compute coverage using Coveralls.
# See https://github.com/hpi-swa/smalltalkCI/blob/master/docs/COVERAGE.md for more documentation.
# Be sure to run on packages or classes in the repository (not loaded via dependency)
name: Setup and Run Tests
runs-on: ubuntu-latest
steps:
- name: Install Maven
run: sudo apt-get update && sudo apt-get install -y maven

- name: Run Tests
uses: moosetechnology/.github/.github/workflows/run-tests.yml@main
with:
run-coverage: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e2f5827

Please sign in to comment.