mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
---
|
|
name: Run Check
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
JAVA_VERSION: 17
|
|
RUBY_VERSION: 3.2.2
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
|
with:
|
|
fetch-depth: 0
|
|
# Allow subsequent steps to trigger GitHub Actions via git push
|
|
# https://github.community/t/push-from-action-even-with-pat-does-not-trigger-action/17622
|
|
persist-credentials: false
|
|
|
|
- name: Configure Ruby
|
|
uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 # v1.154.0
|
|
with:
|
|
bundler-cache: true
|
|
ruby-version: ${{ env.RUBY_VERSION }}
|
|
|
|
- name: Configure JDK
|
|
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
|
|
- name: Build and Run Check
|
|
# Run checks while excluding release-build tests, which are not configured to work properly
|
|
# with the Compose testing library.
|
|
run: ./gradlew check -x testRelease koverXmlReportDebug
|
|
|
|
- name: Danger
|
|
env:
|
|
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: bundle exec danger
|