Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
Merged
merged 3 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
UNITY_PROJECT_PATH: ''

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
validate:
Expand All @@ -33,36 +33,43 @@ jobs:

steps:
- name: checkout self
uses: actions/checkout@v3
uses: actions/checkout@v4

- run: npm install

- name: checkout test project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: xrtk/com.xrtk.test
path: test-project

- uses: xrtk/unity-setup@v7.1
- uses: xrtk/unity-setup@v7.4
with:
build-targets: ${{ matrix.build-target }}
version-file-path: 'test-project/**/ProjectSettings/ProjectVersion.txt'

- uses: xrtk/activate-unity-license@v2
# Activates the installation with the provided credentials
- uses: xrtk/[email protected]
with:
# Required
username: ${{ secrets.UNITY_USERNAME }}
password: ${{ secrets.UNITY_PASSWORD }}
serial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations
license-type: 'Professional' # Chooses license type to use [ Personal, Professional ]
# Optional
license-type: 'Personal' # Chooses license type to use [ Personal, Professional ]
# serial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations
auth-key: ${{ secrets.UNITY_2FA_KEY }} # required for personal activations

- name: xrtk/unity-action
uses: ./
with:
log-name: 'Test'
args: '-quit -batchmode -nographics'

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload Artifacts
if: always()
with:
name: '${{ runner.os }}-${{ matrix.build-target }}-Artifacts'
path: '${{ env.UNITY_PROJECT_PATH }}/Builds'
if-no-files-found: ignore
name: '${{ github.run_number }}.${{ github.run_attempt }}-${{ runner.os }}-${{ matrix.build-target }}-Artifacts'
path: |
${{ env.UNITY_PROJECT_PATH }}/**/*.log
${{ env.UNITY_PROJECT_PATH }}/Builds/${{ matrix.build-target }}/
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ jobs:
# sets -> env.UNITY_EDITOR_PATH
# sets -> env.UNITY_PROJECT_PATH
# https://github.com/XRTK/unity-setup
- uses: xrtk/unity-setup@v7.1
- uses: xrtk/unity-setup@v7.4
with:
build-targets: ${{ matrix.build-target }}

# Activates the installation with the provided credentials
- uses: xrtk/activate-unity-license@v2
- uses: xrtk/activate-unity-license@v5.1
with:
# Required
username: ${{ secrets.UNITY_USERNAME }}
Expand All @@ -65,14 +65,14 @@ jobs:
license-type: 'Personal' # Chooses license type to use [ Personal, Professional ]
serial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations

- uses: xrtk/unity-action@v6
- uses: xrtk/unity-action@v6.1
name: '${{ matrix.build-target }}-Tests'
with:
build-target: '${{ matrix.build-target }}'
args: '-batchmode -runEditorTests'
log-name: '${{ matrix.build-target }}-Tests'

- uses: xrtk/unity-action@v6
- uses: xrtk/unity-action@v6.1
name: '${{ matrix.build-target }}-Build'
with:
build-target: '${{ matrix.build-target }}'
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ inputs:
required: false
default: 'Unity'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
post: 'dist/index.js'
94 changes: 33 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unity-action",
"version": "6.0.0",
"version": "6.1.0",
"description": "An atomic GitHub Action that runs the Unity engine via cli with the provided parameters.",
"main": "src/index.js",
"scripts": {
Expand Down