-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first pass at running stairway unit tests on PR
- Loading branch information
mflinn-broad
committed
Feb 27, 2024
1 parent
4c9aef9
commit ff9c964
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Run Unit Tests | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
paths-ignore: [ '*.md' ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
jobs: | ||
run-unit-tests: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:13 | ||
env: | ||
# Default values stairway expects based on DEVELOPMENT.md | ||
POSTGRES_PASSWORD: stairwaypw | ||
POSTGRES_USER: stairwayuser | ||
POSTGRES_DB: stairwaylib | ||
ports: [ "5432:5432" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: 'gradle' | ||
- name: Run tests | ||
run: ./gradlew --build-cache test | ||
|