build: separate material and material3 #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
pull_request: | |
push: | |
paths-ignore: | |
- 'README.md' | |
branches: | |
- develop | |
- main | |
jobs: | |
debug_build: | |
name: Debug build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Build | |
run: ./gradlew assembleDebug | |
release_build: | |
name: Release build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Build | |
run: ./gradlew assembleRelease | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Unit tests | |
run: ./gradlew testDebug --stacktrace | |
- name: Upload testDebugUnitTest results | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: testDebugUnitTest | |
path: ./**/build/reports/tests/testDebugUnitTest |