Skip to content

Fixed victory screen button #224

Fixed victory screen button

Fixed victory screen button #224

Workflow file for this run

name: 2DRove CI workflow
on:
# Replace with whatever branch you're working on :)
push:
branches:
- main
pull_request:
branches:
- main
jobs:
runLinter:
name: Run Linter
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2 #example code uses v3 but i noticed runTests uses v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- name: Run Linter
uses: wearerequired/lint-action@v2 #might just be @v2
with:
dotnet_format: true
dotnet_format_dir: 2DRove/
github_token: ${{ secrets.GITHUB_TOKEN }}
#there is is the slight possibility that there is more to this than i think
#if that is the case, then i think it would come from the dotnet sectino
#since that is what is used to check c# code.
#link to the tool: https://github.com/dotnet/format
#link to the linter from github: https://github.com/marketplace/actions/lint-action
runTests:
name: Run Tests
runs-on: ubuntu-latest
steps:
# Checkout repo code
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
# Caches information to make future jobs go faster
- name: Cache Library
uses: actions/cache@v2
with:
path: Library
key: Library
# Runs tests using integrated Test Runner for workflows
- name: Unity - Test runner
uses: game-ci/unity-test-runner@v4.1.1
# Need to generate Pro Unity license with Github secrets to get this to work
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
projectPath: 2DRove
githubToken: ${{ secrets.GITHUB_TOKEN }}
unityVersion: 2022.3.19f1
testMode: playmode
customParameters: -debugCodeOptimization -enableCodeCoverage -coverageResultsPath ./coverage-results -coverageOptions generateHtmlReport
# Archive our code coverage results in a zip file (will try to output it to actions later)
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: 2DRove/CodeCoverage