mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
BIT-3: Add initial CI workflow to run tests and lint checks (#41)
This commit is contained in:
parent
fdd7a52c12
commit
a5691c88a2
1 changed files with 32 additions and 0 deletions
32
.github/workflows/run-check.yml
vendored
Normal file
32
.github/workflows/run-check.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
name: Run Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
env:
|
||||||
|
JAVA_VERSION: 17
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.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 JDK
|
||||||
|
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.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
|
Loading…
Reference in a new issue