Skip to content

Commit

Permalink
first pass at running stairway unit tests on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mflinn-broad committed Feb 27, 2024
1 parent 4c9aef9 commit ff9c964
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/unitTest.yaml
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

0 comments on commit ff9c964

Please sign in to comment.