name: Regression Games Bots QA 🤖 on: [push] # See https://game.ci/docs/github/test-runner and RG_DOCS for more info jobs: build: name: Build my project ✨ 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@v3 # Git LFS - name: Create LFS file list run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - name: Restore LFS cache uses: actions/cache@v3 id: lfs-cache with: path: .git/lfs key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} - name: Git LFS Pull run: | git lfs pull git add . git reset --hard # Cache - uses: actions/cache@v3 with: path: Library key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} restore-keys: | Library- # Test # See https://game.ci/docs/github/test-runner for more information - name: Run tests uses: game-ci/unity-test-runner@v3 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} with: customParameters: -RG_BOT ${{ secrets.RG_BOT }} -RG_API_KEY ${{ secrets.RG_API_KEY }} -RG_HOST ${{ secrets.RG_HOST }} githubToken: ${{ secrets.GITHUB_TOKEN }} testMode: PlayMode # Output - uses: actions/upload-artifact@v3 with: name: Build path: build