-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
63 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: unity-meta-check-pr | ||
on: pull_request | ||
|
||
jobs: | ||
unity-meta-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# NOTE: Test no arguments for pull_request | ||
- uses: DeNA/[email protected] | ||
|
||
# NOTE: Test full features | ||
- uses: DeNA/[email protected] | ||
with: | ||
target_path: ./Directory | ||
log_level: DEBUG | ||
ignored_file_path: .meta-check-ignore | ||
enable_autofix: true | ||
autofix_globs: . | ||
enable_junit: true | ||
junit_xml_path: junit.xml | ||
enable_pr_comment: true | ||
pr_comment_lang: en | ||
pr_comment_send_success: true | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
if: always() | ||
|
||
- name: See how autofix did | ||
run: git status | ||
if: always() | ||
|
||
- uses: mikepenz/action-junit-report@v2 | ||
with: | ||
report_paths: junit.xml | ||
if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: unity-meta-check-push | ||
on: push | ||
|
||
jobs: | ||
unity-meta-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# NOTE: Test no arguments for push | ||
- uses: DeNA/[email protected] | ||
|
||
# NOTE: Test pr_comment for push | ||
- uses: jwalton/gh-find-current-pr@v1 | ||
id: findPr | ||
|
||
- uses: DeNA/[email protected] | ||
with: | ||
target_path: ./Directory | ||
log_level: DEBUG | ||
enable_pr_comment: true | ||
pr_comment_lang: en | ||
pr_comment_send_success: true | ||
pr_comment_pull_number: ${{ steps.findPr.outputs.number }} | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ignored |
Empty file.
Empty file.
Empty file.
Empty file.