Skip to content

Commit f5846c5

Browse files
committed
Add a workflow step to run tests before deploying a snapshot
1 parent b1479d5 commit f5846c5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- name: Validate Gradle wrapper
2020
uses: gradle/wrapper-validation-action@v1
2121

22+
- name: Run tests
23+
run: ./build-scripts/run_tests.sh
24+
2225
- name: Deploy Snapshot
2326
run: ./build-scripts/deploy_snapshot.sh
2427
env:

build-scripts/run_tests.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
#
3+
# Run tests for all modules
4+
#
5+
6+
set -e
7+
8+
echo "Running tests..."
9+
./gradlew test

0 commit comments

Comments
 (0)