Skip to content

Bump actions/checkout from 4.2.2 to 5.0.0 (#240) #380

Bump actions/checkout from 4.2.2 to 5.0.0 (#240)

Bump actions/checkout from 4.2.2 to 5.0.0 (#240) #380

Workflow file for this run

name: Java CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
unit_tests:
name: Unit tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Set up JDK
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
with:
java-version: "21"
distribution: "temurin"
- name: Test with Gradle
run: ./gradlew --no-daemon --continue test
- name: Upload test coverage
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
- name: Create test summary
uses: test-summary/action@032c8a9cec6aaa3c20228112cae6ca10a3b29336
with:
paths: "**/build/test-results/test/*.xml"
if: always()
smoke_tests:
name: Smoke tests
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435
with:
install: true
- name: Build Docker image and store in cache
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
push: false
load: true
tags: exercism/java-representer
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Tests in Docker
run: bin/run-tests-in-docker.sh