-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
46 lines (43 loc) · 1.53 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 'DevCycle Test Harness'
description: 'Run test harness tests against given SDKs'
inputs:
sdks-to-test:
description: 'Which SDKs to test'
required: true
sdk-github-sha:
description: 'The SHA ref of the SDK to test - used in PRs. If not specified; sdk-version is used'
required: false
runs:
using: 'composite'
steps:
- uses: actions/checkout@v3.3.0
with:
repository: DevCycleHQ/test-harness
- name: 'Install Docker'
shell: bash
run: sudo apt install docker-compose
- uses: actions/setup-node@v3
with:
node-version: 22
cache: 'yarn'
- name: Install Dependencies
shell: bash
run: yarn install
- name: Run All Tests
shell: bash
run: yarn test:ci
env:
SDK_GITHUB_SHA: ${{ inputs.sdk-github-sha }}
SDKS_TO_TEST: ${{ inputs.sdks-to-test }}
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: jest-*.xml
- name: Test Report
uses: dorny/test-reporter@v1
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }} && (success() || failure())
with:
name: Test Report # Name of the check run which will be created
path: jest-*.xml # Path to test results
reporter: jest-junit # Format of test results