Skip to content

refactor(package): move SDK from Assets/ import to UPM package in Packages #4

refactor(package): move SDK from Assets/ import to UPM package in Packages

refactor(package): move SDK from Assets/ import to UPM package in Packages #4

Workflow file for this run

name: Unity EditMode Tests
on:
pull_request:
branches: [main]
paths:
- "Packages/com.playroomkit.sdk/**/*.cs"
- "Packages/com.playroomkit.sdk/**/*.asmdef"
- "Packages/com.playroomkit.sdk/**/*.asmref"
- "Packages/com.playroomkit.sdk/**/*.unity"
- "Packages/com.playroomkit.sdk/package.json"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
checks: write
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Cache Unity Library
uses: actions/cache@v4
with:
path: Library
key: Library-${{ runner.os }}-2022.3.62f3-${{ hashFiles('Packages/manifest.json', 'Packages/packages-lock.json') }}
restore-keys: |
Library-${{ runner.os }}-2022.3.62f3-
- name: Run EditMode tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: Packages/com.playroomkit.sdk
packageMode: true
unityVersion: 2022.3.62f3
testMode: editmode
artifactsPath: Assets/test-results
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: EditMode Test Results
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: unity-test-results
path: Assets/test-results