diff --git a/.github/workflows/e2e_tests.yml b/.github/workflows/e2e_tests.yml new file mode 100644 index 000000000..d28c4472a --- /dev/null +++ b/.github/workflows/e2e_tests.yml @@ -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 }} + \ No newline at end of file diff --git a/Assets/RegressionGames/Resources/regression_cert.txt.meta b/Assets/RegressionGames/Resources/regression_cert.txt.meta index 41968a7bd..588045c3c 100644 --- a/Assets/RegressionGames/Resources/regression_cert.txt.meta +++ b/Assets/RegressionGames/Resources/regression_cert.txt.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ef76fa11f58324c828dea581f40c9e07 +guid: f5d7d89d3ebc00a4fa64070d08c6ad53 DefaultImporter: externalObjects: {} userData: