Skip to content

Commit

Permalink
run tests on ci actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ale1 committed Nov 16, 2023
1 parent ca9cbce commit 963cf13
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test package

on: [push, pull_request]

jobs:
testEditMode:
name: Test in ${{matrix.testMode}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- Packages
unityVersion: '2021.3.29f1'
testMode:
- editmode
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true

# Cache
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Test
- name: Run tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
packageMode: true #runs tests on packages rather than main proj

0 comments on commit 963cf13

Please sign in to comment.