Skip to content

Commit 86ca0df

Browse files
committed
Upgrade GitHub Actions to v4
1 parent fb280ba commit 86ca0df

File tree

2 files changed

+31
-15
lines changed

2 files changed

+31
-15
lines changed

.github/workflows/check.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check
2+
on: [ pull_request, push ]
3+
jobs:
4+
check:
5+
runs-on: ubuntu-latest
6+
# push: always run.
7+
# pull_request: run only when the PR is submitted from a forked repository, not within this repository.
8+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
9+
strategy:
10+
fail-fast: false
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up OpenJDK 8
14+
uses: actions/setup-java@v4
15+
with:
16+
java-version: 8
17+
distribution: "temurin"
18+
cache: "gradle"
19+
- name: Check
20+
run: ./gradlew --info --stacktrace check
21+
- uses: actions/upload-artifact@v4
22+
if: always()
23+
with:
24+
name: tests
25+
path: ./build/reports/tests/test
26+
- name: Generate JaCoCo test report
27+
run: ./gradlew jacocoTestReport coveralls
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: jacoco
31+
path: ./build/reports/jacoco/test

.github/workflows/test.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)