-
-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (49 loc) · 1.51 KB
/
Copy pathtest.yml
File metadata and controls
56 lines (49 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Set up JDK
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95
with:
java-version: "21"
distribution: "temurin"
- name: Test with Gradle
run: ./gradlew --no-daemon --continue test
- name: Upload test coverage
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329
- name: Create test summary
uses: test-summary/action@37b508cfee6d4d080eedd00b5bb240a6a784a6a5
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@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e
with:
install: true
- name: Build Docker image and store in cache
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a
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