Skip to content

Added xsc api and receiving agent and not taking only default. #64

Added xsc api and receiving agent and not taking only default.

Added xsc api and receiving agent and not taking only default. #64

Workflow file for this run

name: Test
on:
push:
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [ labeled ]
jobs:
test:
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
steps:
- name: Unlabel 'safe to test'
uses: actions-ecosystem/action-remove-labels@v1
if: ${{github.event_name != 'push' }}
with:
labels: "safe to test"
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
# Install required tools
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: "adopt"
java-version: "11"
# Run tests
- name: Tests on macOS, Linux
run: ./gradlew clean test
if: runner.os != 'Windows'
env:
CLIENTTESTS_XRAY_URL: ${{ secrets.PLATFORM_URL }}/xray
CLIENTTESTS_XRAY_TOKEN: ${{ secrets.PLATFORM_ADMIN_TOKEN }}
- name: Tests on Windows
run: ./gradlew.bat clean test
if: runner.os == 'Windows'
env:
CLIENTTESTS_XRAY_URL: ${{ secrets.PLATFORM_URL }}/xray
CLIENTTESTS_XRAY_TOKEN: ${{ secrets.PLATFORM_ADMIN_TOKEN }}