This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
63 lines (58 loc) · 1.93 KB
/
build_arrow-fx.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
name: "arrow-fx: build"
on: pull_request
jobs:
arrow-fx_build:
env:
BASEDIR: ${{github.workspace}}/..
ARROW_LIB: arrow-fx
runs-on: macos-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v2
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Checkout orchestrator
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BRANCH_NAME=${{ github.event.pull_request.head.ref }}
git clone https://github.com/arrow-kt/arrow.git $BASEDIR/arrow --depth 1 --no-single-branch
. $BASEDIR/arrow/scripts/commons4gradle.sh
updateOrchestrator $BRANCH_NAME
- name: Install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BRANCH_NAME=${{ github.event.pull_request.head.ref }}
$BASEDIR/arrow/scripts/action-install.sh $ARROW_LIB $BRANCH_NAME
- name: Check
run: |
./gradlew check
#- name: Run benchmark for master branch
# run: |
# git checkout master
# ./gradlew :arrow-benchmarks-fx:jmhForMasterBranch
#- name: Run benchmark for pull request
# run: |
# git checkout $GITHUB_SHA
# ./gradlew clean :arrow-benchmarks-fx:jmhForPullRequest
#- name: Run benchmark comparison
# env:
# CI_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# export PULL_REQUEST_NUMBER=$(echo $GITHUB_REF | cut -d/ -f3)
# ./gradlew :arrow-benchmarks-fx:compareBenchmarksCI
- name: Prepare test reports
if: ${{ always() }}
run: |
mkdir test-reports
for report in `ls -d ./**/build/reports/tests/test`; do
arrow_module=$(echo $report | cut -d/ -f2)
cp -r $report test-reports/$arrow_module
done
- name: Make test reports available to download
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: test-reports
path: test-reports