-
Notifications
You must be signed in to change notification settings - Fork 3
77 lines (66 loc) · 2.18 KB
/
pull_request.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Pull request check
on: pull_request
jobs:
build-and-check:
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Checkout the repo
uses: actions/checkout@v4
- name: Prepares environment for building
uses: ./.github/actions/setup
- name: Prepare nodeJS enviroment for integrity check
uses: ./.github/actions/setup-nodejs
with:
os: ${{ matrix.os }}
- name: Cache Kotlin Konan
id: cache-kotlin-konan
uses: actions/cache@v4
with:
path: |
~/.konan/**/*
key: kotlin-konan-${{ matrix.os }}
- name: Build Native Binary for macos
if: matrix.os == 'macos-latest'
uses: burrunan/gradle-cache-action@v2
with:
gradle-version: wrapper
job-id: ${{ matrix.os }}
arguments: releaseMacOS
- name: Build Native Binary for Windows
if: matrix.os == 'windows-latest'
uses: burrunan/gradle-cache-action@v2
with:
gradle-version: wrapper
job-id: ${{ matrix.os }}
arguments: releaseWindows
- name: Build Native Binary for Linux
if: matrix.os == 'ubuntu-latest'
uses: burrunan/gradle-cache-action@v2
with:
gradle-version: wrapper
job-id: ${{ matrix.os }}
arguments: releaseLinux
- name: Running Detekt
shell: bash
run: |
./gradlew detektMetadataCommonMain
- name: Verify unit tests
shell: bash
run: |
./gradlew cleanAllTests allTests
continue-on-error: false
- name: CLI Integrity check using SVG
uses: ./.github/actions/cli-integrity-check
with:
type: svg
continue-on-error: false
- name: CLI Integrity check using XML
uses: ./.github/actions/cli-integrity-check
with:
type: xml
continue-on-error: false