Skip to content

Commit 89c1af1

Browse files
committed
workflows
1 parent 7a96b89 commit 89c1af1

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "main", "auto" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
checks: write
15+
pull-requests: write
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up JDK 25
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '25'
24+
distribution: 'temurin'
25+
26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@v3
28+
29+
- name: Run Tests
30+
run: ./gradlew test
31+
32+
- name: Setup Node
33+
uses: actions/setup-node@v4
34+
if: always()
35+
36+
- name: Generate CTRF Report
37+
run: npx ctrf junit build/test-results/test/**/*.xml
38+
if: always()
39+
40+
- name: Publish Test Report
41+
uses: ctrf-io/github-test-reporter@v1
42+
with:
43+
report-path: 'ctrf-report.json'
44+
if: always()

0 commit comments

Comments
 (0)