-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
28 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,53 @@ | ||
name: Unity Build and Test | ||
#file: .github/workflows/qa-tests.yml | ||
|
||
on: | ||
# Build every commit to 'main' | ||
push: | ||
branches: | ||
- main | ||
name: Automated QA Tests 🤖 | ||
|
||
# Build every PR | ||
pull_request: | ||
on: [push] | ||
|
||
concurrency: | ||
group: unity_build | ||
cancel-in-progress: false | ||
|
||
# See https://game.ci/docs/github/test-runner for more info | ||
jobs: | ||
test: | ||
name: Unity E2E Tests | ||
build: | ||
name: Build and run tests ✨ | ||
runs-on: ubuntu-latest | ||
permissions: write-all # This is to allow writing results into the artifacts section of GitHub Actions | ||
steps: | ||
|
||
# Checkout (without LFS) | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
# - name: Retrieve Cached Library | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: Library | ||
# key: Library-${{ hashFiles('src/RGUnityBots/Assets/**', 'src/RGUnityBots/Packages/**', 'src/RGUnityBots/ProjectSettings/**') }} | ||
# restore-keys: | | ||
# Library- | ||
# Cache | ||
- name: Retrieve cached library | ||
uses: actions/cache@v3 | ||
with: | ||
path: Library | ||
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | ||
restore-keys: | | ||
Library- | ||
- name: Run Unity Tests | ||
# Test | ||
# See https://game.ci/docs/github/test-runner for more information | ||
- name: Run tests | ||
id: run-unity-tests | ||
uses: game-ci/unity-test-runner@v4 | ||
env: | ||
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
testMode: PlayMode | ||
|
||
# Output | ||
- name: Upload Test Results | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: Test results | ||
path: ${{ steps.run-unity-tests.outputs.artifactsPath }} | ||
|
||
name: Test Results | ||
path: ${{ steps.run-unity-tests.outputs.artifactsPath }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Git LFS file not shown