Skip to content

Commit

Permalink
Attempt workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
vontell committed Sep 12, 2024
1 parent 44a3a18 commit f98a74b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Unity Build and Test

on:
# Build every commit to 'main'
push:
branches:
- main

# Build every PR
pull_request:

concurrency:
group: unity_build
cancel-in-progress: false

jobs:
test:
name: Unity E2E Tests
runs-on: ubuntu-latest
steps:
- 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-

- name: Run Unity Tests
id: run-unity-tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
projectPath: /
githubToken: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Test Results
uses: actions/upload-artifact@v3
if: always()
with:
name: Test results
path: ${{ steps.run-unity-tests.outputs.artifactsPath }}

2 changes: 1 addition & 1 deletion Assets/RegressionGames/Resources/regression_cert.txt.meta

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

0 comments on commit f98a74b

Please sign in to comment.