Skip to content

Commit

Permalink
Enable GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuniwak committed Mar 28, 2023
1 parent 0d8282c commit bc4815b
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 19 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/unity-meta-check-pr.yml
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()
26 changes: 26 additions & 0 deletions .github/workflows/unity-meta-check-push.yml
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()
1 change: 1 addition & 0 deletions .meta-check-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ignored
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.

0 comments on commit bc4815b

Please sign in to comment.