Skip to content

Functional Tests

Functional Tests #305

Workflow file for this run

name: Functional Tests
on:
pull_request_target:
branches:
- '*'
workflow_dispatch:
schedule:
- cron: '0 5 * * *'
jobs:
functional_tests:
name: "Functional Tests Java ${{ matrix.java }}"
runs-on: ubuntu-20.04
strategy:
matrix:
java: [ '8', '11' ]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '${{ matrix.java }}'
cache: 'gradle'
- run: ./gradlew runFunctionalTests
env:
FPJS_API_SECRET: "${{ secrets.FPJS_API_SECRET }}"
FPJS_API_REGION: "${{ secrets.FPJS_API_REGION }}"
FPJS_VISITOR_ID: "${{ secrets.FPJS_VISITOR_ID }}"
FPJS_REQUEST_ID: "${{ secrets.FPJS_REQUEST_ID }}"
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@0d9c6ff1de9903da88d24c0564f6e83cb28faca9
with:
status: ${{ job.status }}
notification_title: 'Java ${{ matrix.java }} SDK Functional Test has {status_message}'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}