Skip to content

Commit

Permalink
feat: add target branch as input
Browse files Browse the repository at this point in the history
  • Loading branch information
rYuuk committed Sep 5, 2023
1 parent c715fb7 commit bfb17e9
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/test-runner.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Run Tests
name: Empty Project Integration

on:
pull_request:
types: [ opened, reopened ]
workflow_dispatch:
inputs:
targetBranch:
description: 'Branch - release/v1.0.0, develop, main'
required: true
default: 'develop'

jobs:
runAllTests:
Expand All @@ -13,6 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
targetBranch:
- ${{ github.event.inputs.targetBranch }}
testMode:
- playmode
- editmode
Expand All @@ -31,12 +34,12 @@ jobs:
- name: Get npm
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18
- name: Install openupm-cli
run: npm install -g openupm-cli
- run: pwd
- name: Add core as package
run: openupm add com.readyplayerme.core@https://github.com/readyplayerme/rpm-unity-sdk-core.git#feature/test-open-upm-dependency
- name: Add core as package
run: openupm add com.readyplayerme.core@https://github.com/readyplayerme/rpm-unity-sdk-core.git#${{ matrix.targetBranch }}
- name: Run Tests
uses: game-ci/unity-test-runner@v2
env:
Expand Down

0 comments on commit bfb17e9

Please sign in to comment.