Skip to content

Merge pull request #1448 from dimagi/dependabot/gradle/org.jetbrains.… #1169

Merge pull request #1448 from dimagi/dependabot/gradle/org.jetbrains.…

Merge pull request #1448 from dimagi/dependabot/gradle/org.jetbrains.… #1169

Workflow file for this run

name: Formplayer tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:10
env:
POSTGRES_DB: formplayer
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
MALLOC_ARENA_MAX: 1
GRADLE_OPTS: -Xmx512m
POSTGRESQL_HOST: localhost
POSTGRESQL_USERNAME: postgres
POSTGRESQL_PASSWROD: postgres
REDIS_HOSTNAME: localhost
COMMCARE_HOST: http://localhost:8000
AUTH_KEY: secretkey
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Setup config
run: |
cp .github/gradle.properties.ci gradle.properties
- name: Copy Test Resources
uses: gradle/gradle-build-action@v2
with:
arguments: copyTestResources
- name: Run all tests and checks
uses: gradle/gradle-build-action@v2
with:
arguments: check
- name: Codecov upload
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true