Skip to content

Add test for language slug in metadata feature #1718

Add test for language slug in metadata feature

Add test for language slug in metadata feature #1718

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@v4
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@v3
with:
arguments: copyTestResources
- name: Run all tests and checks
uses: gradle/gradle-build-action@v3
with:
arguments: check
- name: Codecov upload
env:
TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: env.TOKEN != ''
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true