mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2025-12-24 15:47:53 -05:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.6 to 4.1.7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.6...v4.1.7) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: Android CI
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- staging
|
|
- trying
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
permissions:
|
|
actions: none
|
|
checks: none
|
|
contents: read
|
|
deployments: none
|
|
discussions: none
|
|
id-token: none
|
|
issues: none
|
|
packages: none
|
|
pages: none
|
|
pull-requests: none
|
|
repository-projects: none
|
|
security-events: none
|
|
statuses: none
|
|
env:
|
|
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.1.7
|
|
- name: Fail on bad translations
|
|
run: if grep -ri "<xliff" app/src/main/res/values*/strings.xml; then echo "Invalidly escaped translations found"; exit 1; fi
|
|
- uses: gradle/actions/wrapper-validation@v3
|
|
- name: set up OpenJDK 17
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y openjdk-17-jdk-headless
|
|
sudo update-alternatives --auto java
|
|
- name: Build
|
|
run: ./gradlew assembleRelease
|
|
- name: Check lint
|
|
run: ./gradlew lintRelease
|
|
- name: Run unit tests
|
|
run: timeout 5m ./gradlew testReleaseUnitTest || { ./gradlew --stop && timeout 5m ./gradlew testReleaseUnitTest; }
|
|
- name: SpotBugs
|
|
run: ./gradlew spotbugsRelease
|
|
- name: Archive test results
|
|
if: always()
|
|
uses: actions/upload-artifact@v4.3.3
|
|
with:
|
|
name: test-results
|
|
path: app/build/reports
|