-
Notifications
You must be signed in to change notification settings - Fork 21
56 lines (46 loc) · 1.64 KB
/
build.yml
File metadata and controls
56 lines (46 loc) · 1.64 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: Build
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
clean: ${{ github.ref == 'refs/heads/develop' }}
- name: Build setup
uses: ./.github/actions/build-setup
- name: Compile & run tests
run: ./gradlew kotlinUpgradeYarnLock check
- name: Publish unit test report
if: always()
uses: mikepenz/action-junit-report@v6
with:
check_name: Unit test report
require_tests: true
report_paths: "**/build/test-results/**/TEST-*.xml"
# compileProductionExecutableKotlinJs
- name: Build production JS file for size comparison
run: ./gradlew compileProductionExecutableKotlinJs
- name: Calculate JS size difference
id: lib-size-diff
uses: jacobras/size-diff-action@v2
with:
path: build/js/packages/composeApp/kotlin/Human-Readable.js
- name: Comment JS size difference
uses: marocchino/sticky-pull-request-comment@v2
with:
header: lib-size-diff
message: ${{ steps.lib-size-diff.outputs.summary }}