Skip to content

Commit

Permalink
ci: update zkevem api package update workflow to generate meta files
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Oct 23, 2024
1 parent cd8c935 commit 4790c2b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/update-zkevm-api-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3

- name: Pull files from Git LFS
run: git lfs pull

- name: Get current date and time
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M-%S')"
Expand Down Expand Up @@ -66,6 +69,25 @@ jobs:
rm openapi-generator-cli.jar
rm openapi.json
- name: Open sample app in Unity to generate .meta files
if: steps.comparison.outputs.difference == 'true'
uses: game-ci/unity-test-runner@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
unityVersion: 2021.3.26f1
projectPath: './sample'
githubToken: ${{ secrets.GITHUB_TOKEN }}
testMode: 'EditMode'

- name: Clean up code coverage
if: steps.comparison.outputs.difference == 'true'
run: |
rm -rf ./CodeCoverage
rm -rf ./artifacts
- name: Create or update PR
if: steps.comparison.outputs.difference == 'true'
uses: gr2m/create-or-update-pull-request-action@v1
Expand All @@ -75,4 +97,5 @@ jobs:
title: "feat: update immutable zkEVM API package"
body: "Update Immutable zkEVM API package"
branch: "chore/update-zkevm-api-${{ steps.date.outputs.date }}"
commit-message: "feat: update immutable zkEVM API package"
commit-message: "feat: update immutable zkEVM API package"
path: ./src/Packages/ZkEvmApi/
1 change: 1 addition & 0 deletions sample/Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"com.alttester.sdk": "2.1.1",
"com.cysharp.unitask": "2.3.3",
"com.immutable.passport": "file:../../src/Packages/Passport",
"com.immutable.api.zkevm": "file:../../src/Packages/ZkEvmApi",
"com.unity.ai.navigation": "1.1.4",
"com.unity.ide.visualstudio": "2.0.21",
"com.unity.ide.vscode": "1.2.5",
Expand Down
8 changes: 8 additions & 0 deletions sample/Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
"dependencies": {},
"url": "https://package.openupm.com"
},
"com.immutable.api.zkevm": {
"version": "file:../../src/Packages/ZkEvmApi",
"depth": 0,
"source": "local",
"dependencies": {
"com.unity.nuget.newtonsoft-json": "3.0.2"
}
},
"com.immutable.passport": {
"version": "file:../../src/Packages/Passport",
"depth": 0,
Expand Down

0 comments on commit 4790c2b

Please sign in to comment.