Skip to content

Commit

Permalink
Add testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paralleltree committed Sep 21, 2024
1 parent ece3733 commit 58c7cf1
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_size = 2

[*.asmdef]
insert_final_newline = false
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test
on:
push:
# branches:
# - main
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup repository
run: |
mkdir .github/ProjectRoot/Packages/dev.paltee.avatar-aid -p
mv * .github/ProjectRoot/Packages/dev.paltee.avatar-aid
mv .github/ProjectRoot/* .
- uses: anatawa12/sh-actions/resolve-vpm-packages@master
with:
repos: |
https://vpm.nadena.dev/vpm-prerelease.json
- uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
unityVersion: 2022.3.22f1
projectPath: .
githubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 58c7cf1

Please sign in to comment.