-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (48 loc) · 1.52 KB
/
ci.yml
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
57
name: CI
on:
pull_request:
# Trigger on merges to `main` to allow `gradle/gradle-build-action` runs to write their caches.
# https://github.com/gradle/gradle-build-action#using-the-caches-read-only
push:
branches:
- main
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: assemble
uses: gradle/gradle-build-action@v3
with:
arguments: assemble
- name: check jacocoTestReport
uses: gradle/gradle-build-action@v3
with:
arguments: check jacocoTestReport
- uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
junit_files: '**/build/test-results/**/*.xml'
report_individual_runs: 'true'
- uses: codecov/codecov-action@v4
- name: publishToMavenLocal
if: github.repository_owner == 'JuulLabs'
uses: gradle/gradle-build-action@v3
with:
arguments: |
-PVERSION_NAME=unspecified
-PsigningInMemoryKey=${{ secrets.SIGNING_KEY }}
-PsigningInMemoryKeyPassword=${{ secrets.SIGNING_PASSWORD }}
publishToMavenLocal
- name: Website
uses: gradle/gradle-build-action@v3
with:
arguments: :website:browserBuild