Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DONT_MERGE: GitHub Actions Playground #2

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/unity-meta-check-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: unity-meta-check-pr
on: pull_request

jobs:
unity-meta-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# NOTE: Test no arguments for pull_request
- uses: DeNA/[email protected]

# NOTE: Test full features
- uses: DeNA/[email protected]
with:
target_path: .
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@v3
with:
report_paths: junit.xml
detailed_summary: true
if: always()

- uses: actions/upload-artifact@v4
with:
name: junit-test-report
path: junit.xml
if: always()
43 changes: 43 additions & 0 deletions .github/workflows/unity-meta-check-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: unity-meta-check-push
on: push

jobs:
unity-meta-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# 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
if: always()

- uses: DeNA/[email protected]
with:
target_path: .
log_level: DEBUG
ignored_file_path: .meta-check-ignore
enable_junit: true
junit_xml_path: junit.xml
enable_pr_comment: true
pr_comment_lang: ja
pr_comment_send_success: true
pr_comment_pull_number: ${{ steps.findPr.outputs.number }}
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: always()

- uses: actions/upload-artifact@v4
with:
name: junit-test-report
path: junit.xml
if: always()

- uses: mikepenz/action-junit-report@v3
with:
report_paths: junit.xml
detailed_summary: true
if: always()
2 changes: 2 additions & 0 deletions .meta-check-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Ignored.meta
**/Ignored.meta
Empty file added Dangling.meta
Empty file.
Empty file added Directory/Dangling.meta
Empty file.
Empty file added Directory/Ignored
Empty file.
Empty file added Directory/Missing
Empty file.
Empty file added Ignored
Empty file.
7 changes: 0 additions & 7 deletions LICENSE

This file was deleted.

Empty file added Missing
Empty file.
12 changes: 0 additions & 12 deletions README.md

This file was deleted.

Loading