forked from FIRST-Tech-Challenge/FtcRobotController
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 976 Bytes
/
build_and_test.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
name: Build and Test
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Set +x
run: chmod a+x gradlew
- name: Build and test
run: ./gradlew clean assembleDebug test
- name: Collate tests
if: ${{ true }}
run: |
mkdir -p build/test_results
find . -regextype posix-extended -regex '.*reports/tests/([^/]+?)' -exec cp -r {} build/test_results/ \;
- name: Upload test results
if: ${{ true }}
uses: actions/upload-artifact@v4
with:
name: test-results
path: build/test_results
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app-debug
path: TeamCode/build/outputs/apk/debug/TeamCode-debug.apk