Skip to content

Commit

Permalink
feat: made action composite
Browse files Browse the repository at this point in the history
  • Loading branch information
rYuuk committed Sep 5, 2023
1 parent bfb17e9 commit 71e87f6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 55 deletions.
42 changes: 42 additions & 0 deletions .github/actions/integration-test-runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Empty Project Integration

inputs:
targetBranch:
description: 'Branch - release/v1.0.0, develop, main'
required: true
default: 'develop'

runs:
using: "composite"
steps:
- name: Checkout Unity-SDK Repository
uses: actions/checkout@v3
- name: Cache Project
uses: actions/cache@v3
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
- name: Get npm
uses: actions/setup-node@v3
with:
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#${{ github.event.inputs.targetBranch }}
- name: Run Tests
uses: game-ci/unity-test-runner@v2
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
unityVersion: 2020.3.0f1
testMode: editmode
projectPath: ./
checkName: 2020.3.0f1 editmode tests result
githubToken: ${{ secrets.GITHUB_TOKEN }}
coverageOptions: "generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+my.assembly.*"
55 changes: 0 additions & 55 deletions .github/workflows/test-runner.yml

This file was deleted.

0 comments on commit 71e87f6

Please sign in to comment.