From 58c7cf133fa334f5069a2ec8014b37c6146a6e13 Mon Sep 17 00:00:00 2001 From: Paralleltree Date: Sat, 21 Sep 2024 13:29:23 +0900 Subject: [PATCH] Add testing workflow --- .editorconfig | 3 +++ .github/workflows/test.yml | 39 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.editorconfig b/.editorconfig index 14e7ea4..c374e42 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,5 +8,8 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true +[*.yml] +indent_size = 2 + [*.asmdef] insert_final_newline = false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..59e9692 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 }}