mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-17 11:50:11 +08:00
chore: adjust gameci workflow to run on external PRs
This commit is contained in:
parent
c405ff1089
commit
a56d8a0ab8
24
.github/workflows/gameci.yml
vendored
24
.github/workflows/gameci.yml
vendored
@ -27,9 +27,17 @@ name: GameCI
|
||||
on:
|
||||
push:
|
||||
branches: [master, dev, ci]
|
||||
pull_request: {}
|
||||
# This is a bit of a radioactive event; we need to be very careful with what permissions
|
||||
# we assign this action, as we're allowing arbitrary code execution with the context of
|
||||
# whatever permissions we assign.
|
||||
pull_request_target: {}
|
||||
workflow_dispatch: {}
|
||||
|
||||
# pull_request_target grants access to a privileged GITHUB_TOKEN by default, revoke this
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
@ -37,22 +45,14 @@ jobs:
|
||||
checks: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
# with:
|
||||
# ref: project-for-test
|
||||
# - uses: actions/checkout@v3
|
||||
# with:
|
||||
# path: Packages/nadena.dev.modular-avatar
|
||||
- uses: anatawa12/sh-actions/resolve-vpm-packages@master
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: Library
|
||||
key: Library
|
||||
restore-keys: Library
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- uses: anatawa12/sh-actions/resolve-vpm-packages@master
|
||||
|
||||
- uses: game-ci/unity-test-runner@v2
|
||||
id: gameci
|
||||
env:
|
||||
# meh, just a personal license...
|
||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||
with:
|
||||
testMode: EditMode
|
||||
|
Loading…
Reference in New Issue
Block a user