Skip to content

Commit

Permalink
Merge pull request #129 from nowsprinting/chore/fix_workflow
Browse files Browse the repository at this point in the history
Fix workflow
  • Loading branch information
nowsprinting authored May 2, 2024
2 parents 2dcbed2 + e2d2b0b commit 479547e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
matrix:
unityVersion: # Available versions see: https://game.ci/docs/docker/versions
- 2019.4.40f1
- 2022.3.17f1
- 2023.2.5f1
- 2022.3.27f1
- 2023.2.20f1
include:
- unityVersion: 2019.4.40f1
octocov: true
Expand Down Expand Up @@ -71,10 +71,15 @@ jobs:
npm install -g openupm-cli
openupm add -f com.unity.test-framework
openupm add -f com.unity.testtools.codecoverage
openupm add -f com.cysharp.unitask
openupm add -f com.nowsprinting.test-helper
openupm add -f [email protected]
openupm add -f [email protected]
openupm add -f [email protected]
working-directory: ${{ env.CREATED_PROJECT_PATH }}

- name: Enable Samples~
run: |
mv ${{ env.CREATED_PROJECT_PATH }}/Packages/${{ env.PACKAGE_NAME }}/Samples~ ${{ env.CREATED_PROJECT_PATH }}/Assets/Samples
- name: Set coverage assembly filters
run: |
assemblies=$(find ${{ env.CREATED_PROJECT_PATH }}/Packages/${{ env.PACKAGE_NAME }} -name "*.asmdef" | sed -e s/.*\\//\+/ | sed -e s/\\.asmdef// | sed -e s/^.*\\.Tests//)
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ create_project:
touch UnityProject~/Assets/.gitkeep
openupm -c $(PROJECT_HOME) add -f com.unity.test-framework
openupm -c $(PROJECT_HOME) add -f com.unity.testtools.codecoverage
openupm -c $(PROJECT_HOME) add -f com.cysharp.unitask
openupm -c $(PROJECT_HOME) add -f com.nowsprinting.test-helper
openupm -c $(PROJECT_HOME) add -f [email protected]
openupm -c $(PROJECT_HOME) add -f [email protected]
openupm -c $(PROJECT_HOME) add -f [email protected]
openupm -c $(PROJECT_HOME) add -ft $(PACKAGE_NAME)@file:../../

.PHONY: remove_project
Expand Down

0 comments on commit 479547e

Please sign in to comment.