-
-
Notifications
You must be signed in to change notification settings - Fork 212
126 lines (121 loc) · 3.71 KB
/
quality-assurance.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: Quality Assurance
on: [ push, pull_request ]
jobs:
test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: sapmachine
java-version: 11
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build using JDK
run: ./gradlew :atrium-api-infix:jvmTest
#
# generate-matrix:
# runs-on: ubuntu-latest
# outputs:
# matrix: ${{ steps.set-matrix.outputs.matrix }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 1
#
# - name: Generate matrix
# id: set-matrix
# run: node .github/workflows/matrix.js
#
# build-and-test:
# name: b&t ${{ matrix.name }}
# needs: generate-matrix
# runs-on: ${{ matrix.os }}
# strategy:
# matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Set up JDK ${{ matrix.java_version }}
# uses: actions/setup-java@v4
# with:
# distribution: ${{ matrix.java_distribution }}
# java-version: ${{ matrix.java_version }}
#
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v4
#
# - name: Build using JDK ${{ matrix.java_version }}
# run: ./gradlew build
#
# - name: Upload build code coverage
# uses: codecov/[email protected]
# if: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# flags: ${{ matrix.os == 'windows-latest' && 'current_windows' || 'current' }}
# env_vars: JAVA_VERSION
#
# - name: Composite build atrium-samples-test
# run: ./gradlew build
# working-directory: misc/tools/atrium-samples-test
#
# dexer:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 1
#
# - name: Cache Android jar
# id: android-cache
# uses: actions/cache@v4
# with:
# path: android-jar-cache
# key: ${{ runner.os }}-android-version-26
#
# - name: Download Android SDK's android.jar (or use cached file)
# if: steps.android-cache.outputs.cache-hit != 'true'
# run: |
# mkdir android-jar-cache
# cd android-jar-cache
# curl -o android.jar -L "https://github.com/Sable/android-platforms/blob/master/android-26/android.jar?raw=true"
# echo "cdc1846376a14b0370cc63454a129606b4a52cc50ada75ef0d4cf956b1ad2daa android.jar" > android.sha256
# if ! sha256sum -c android.sha256; then
# echo >&2 "wrong sha256 for android.jar, expected:"
# cat >&2 android.sha256
# echo >&2 "actual:"
# sha256sum android.jar
# exit 1;
# fi
#
# - name: Check Atrium's -jvm.jar can be dexed
# run: ATRIUM_ANDROID_JAR="$PWD/android-jar-cache/android.jar" ./gradlew checkDexer
#
# forwardCompatibility:
# env:
# JAVA_VERSION: 17
# KOTLIN_VERSION: ${{ matrix.kotlin_version }}
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# kotlin_version: [ '1.5', '1.6', '1.7', '1.8', '1.9', '2.0' ]
# steps:
# - uses: actions/checkout@v4
# - name: Set up JDK 17
# uses: actions/setup-java@v4
# with:
# distribution: 'adopt'
# java-version: 17
#
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v4
#
# - name: Build using Kotlin ${{ matrix.kotlin_version }}
# run: ./gradlew build