-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
42 lines (35 loc) · 980 Bytes
/
Copy pathpr-check.yml
File metadata and controls
42 lines (35 loc) · 980 Bytes
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
37
38
39
40
41
42
name: PR Check
permissions:
contents: read
on:
pull_request:
workflow_dispatch:
concurrency:
group: pr-check-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Prepare workspace permissions
run: |
sudo mkdir -p "$GITHUB_WORKSPACE/.gradle" "$GITHUB_WORKSPACE/app/build"
sudo chmod -R a+rwX "$GITHUB_WORKSPACE"
- name: Run JVM unit tests
run: docker compose run --rm --build unit-tests
pr-check:
name: PR Check
runs-on: ubuntu-latest
needs:
- unit-tests
if: always()
steps:
- name: Verify required jobs
run: |
if [ "${{ needs.unit-tests.result }}" != "success" ]; then
echo "::error::Unit Tests finished with result: ${{ needs.unit-tests.result }}"
exit 1
fi