mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-28 15:32:16 +00:00
We don't need it. Having it around will run a second, parallel-running test. I fear that might cause test-user login issues in the networked fullintegrationtests.
70 lines
2.0 KiB
YAML
70 lines
2.0 KiB
YAML
# Taking notes...
|
|
# https://github.com/modesttree/Zenject/blob/master/.github/workflows/main.yml
|
|
|
|
name: Test and build
|
|
|
|
on:
|
|
pull_request: {}
|
|
push: { branches: [main, develop] }
|
|
|
|
jobs:
|
|
buildAndTestForSupportedPlatforms:
|
|
name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
|
|
runs-on: ubuntu-latest
|
|
environment: SecondLife_1
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
unityVersion:
|
|
- 2020.3.29f1
|
|
targetPlatform:
|
|
- Android # Build a Android standalone.
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
lfs: true
|
|
|
|
- name: Restore Library cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: Library
|
|
key: Library-${{ matrix.targetPlatform }}
|
|
restore-keys: |
|
|
Library-
|
|
|
|
# Test
|
|
- name: Run tests
|
|
uses: alexiscatnip/unity-test-runner@main
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
USERNAME_SECONDLIFE: ${{ secrets.USERNAME_SECONDLIFE }}
|
|
PASSWORD_SECONDLIFE: ${{ secrets.PASSWORD_SECONDLIFE }}
|
|
GRIDFRIENDLYNAME_SECONDLIFE: ${{ secrets.GRIDFRIENDLYNAME_SECONDLIFE }}
|
|
with:
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
unityVersion: ${{ matrix.unityVersion }}
|
|
|
|
# Build
|
|
- name: Build project
|
|
uses: game-ci/unity-builder@v2
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
with:
|
|
unityVersion: ${{ matrix.unityVersion }}
|
|
targetPlatform: ${{ matrix.targetPlatform }}
|
|
# https://github.com/RaindropViewer/RaindropViewer/issues/18
|
|
allowDirtyBuild: true
|
|
|
|
# Output
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Build
|
|
path: build
|