boolean-uk / software-developer

0 stars 0 forks source link

Update Workflow to specify Java 17 when GitHub actions runs the tests. #246

Closed amos1969 closed 7 months ago

amos1969 commented 1 year ago

Currently, no version of Java is specified when the tests are run by GitHub actions and it therefore defaults to using Java 11, which prevents some newer constructs from being used (and will cause the tests to fail if they do). Once JAEX1 have completed the course then we need to update all of the runners to use Java 17 (which is installed on the GitHub image). Details of how to do this can be found here: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

dearshrewdwit commented 1 year ago

Thanks for the investigation on this @amos1969.

@boolean-uk/teachers this might also be relevant for the CSharp repos. Nigel, can you provide some insight here?

Next step: find an example repository and upgrade the workflow and share here to review