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

🏷️ v0.1.1 #31

Merged
merged 18 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f64ba6e
🐛 fix workflow (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
9471e7d
:rotating_light: Test (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
5e56429
:rotating_light: Test (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
ede91df
:fix: Post test (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
b5b696f
:fix: Add id (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
72c039c
🔧 Add Continue on error (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
88010b5
🔧 Add if root (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
1eba3e8
🐛 Fix not = (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
87b9b8a
🐛 Fix step conditinal #28 (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
0acacd2
:rotating_light: Check test result (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
7c4ea5a
🐛 Fix test result (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
bf77721
🐛 Fix test conditional #28 (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
00ab9db
🗑️ Remove test result (.github/workflows/test.yml)
HidemaruOwO Sep 20, 2023
0e2d6d5
🔧 Set workflow permission (.github/workflows/build.yml, .github/workf…
HidemaruOwO Sep 20, 2023
26bca61
:recycle: Merge pull request #30 from HidemaruOwO/fix/test-workflow
HidemaruOwO Sep 20, 2023
5d5688b
docs: Added README."zh-CN".md translation via https://github.com/deph…
github-actions[bot] Sep 20, 2023
3db1b1e
docs: Added README."zh-TW".md translation via https://github.com/deph…
github-actions[bot] Sep 20, 2023
c1b23ca
docs: Added README."en".md translation via https://github.com/dephrai…
github-actions[bot] Sep 20, 2023
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
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ name: "Build"
on:
push:

permissions:
contents: write
repository-projects: write
actions: write
statuses: read

jobs:
release:
name: Release
# runs-on: ubuntu-latest

# Multi platfrom support
# Multi platform support
strategy:
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
Expand All @@ -18,7 +24,7 @@ jobs:
steps:
- name: Wait Tests
id: test_result
uses: Sibz/await-status-action@v1.0.1
uses: Sibz/await-status-action@v1
with:
contexts: test-status
authToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,30 @@ on:
branches:
- "develop"

permissions:
contents: write
repository-projects: write
actions: write
statuses: read

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Wait Tests
id: test_result
uses: Sibz/[email protected]
with:
contexts: test-status
authToken: ${{ secrets.GITHUB_TOKEN }}
timeout: 30
- name: Check Test Result
if: steps.test_result.outputs.result != 'success'
run: |
echo "feiled ${{ steps.test_result.outputs.failedCheckNames }}"
echo "status ${{ steps.test_result.outputs.failedCheckStates }}"
exit 1

- name: Checkout
uses: actions/checkout@v3
with:
Expand All @@ -22,7 +42,7 @@ jobs:
shell: bash
id: extract_branch
- name: Setup
run: echo "Set up your programing language here."
run: echo "Set up your programming language here."
# uses: actions/setup-go@v2
- name: Install formatter
run: echo "Install formatter (Example; npm install prettier)"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Referrence: https://qiita.com/shun198/items/176037432f7efc8fde26
# Reference: https://qiita.com/shun198/items/176037432f7efc8fde26

name: Create Release Note

Expand All @@ -10,7 +10,9 @@ on:
- develop

permissions:
contents: read
contents: write
repository-projects: write
actions: write

jobs:
release:
Expand All @@ -22,4 +24,3 @@ jobs:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ on:
types:
- published

permissions:
contents: write
repository-projects: write
actions: write
statuses: read

jobs:
release:
name: Release
runs-on: ubuntu-latest

# Multi platfrom support
# Multi platform support
# strategy:
# matrix:
# platform: [macos-latest, ubuntu-latest, windows-latest]
# fail-fast: false
# matrix:
# platform: [macos-latest, ubuntu-latest, windows-latest]
# fail-fast: false

# runs-on: ${{ matrix.platform }}

Expand Down
27 changes: 19 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Test CLI
on:
push:

permissions:
statuses: write

jobs:
test:
Expand All @@ -13,16 +15,25 @@ jobs:
uses: actions/checkout@v3

- name: Test
run: echo "Write Test here"

test-status:
name: Test status
runs-on: ubuntu-latest
needs: test
steps:
id: test_step
continue-on-error: true
run: |
echo "Write Test here"
- name: Set Check Status Success
uses: Sibz/[email protected]
uses: Sibz/github-status-action@v1
if: steps.test_step.outcome == 'success'
with:
context: test-status
authToken: ${{ secrets.GITHUB_TOKEN }}
state: success
- name: Set Check Status Failure
uses: Sibz/github-status-action@v1
if: steps.test_step.outcome == 'failure'
with:
context: test-status
authToken: ${{ secrets.GITHUB_TOKEN }}
state: failure

- name: Fail
uses: Sibz/[email protected]
if: steps.test_step.outcome == 'failure'
5 changes: 5 additions & 0 deletions .github/workflows/translate-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
paths:
- ".github/workflows/translate-readme.yml"
- "README.md"

permissions:
contents: write
repository-projects: write

jobs:
translate:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ To use this app, please register the following command in your path.
- `.github/dependabot.yml`of`package-ecosystem`Set the value to (e.g. npm,yarn,pip)
- CodeQL setup
- <https://dev.classmethod.jp/articles/github-code-scanning/>
- [対応言語](https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/)
- [supported language](https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/)

</details>

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ go build ../build.sh
- Dependabot 设置
- `.github/dependabot.yml`的`package-ecosystem`将值设置为(例如 npm、yarn、pip)
- CodeQL 设置
- <https://dev.classmethod.jp/articles/github-code-scanning/>
- [HTTPS://Dev.class method.键盘/articles/GitHub-code-scanning/](https://dev.classmethod.jp/articles/github-code-scanning/)
- [支持的语言](https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/)

</details>
Expand Down
2 changes: 1 addition & 1 deletion README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ go build ../build.sh

## 對於貢獻者🤝

如果您想為這個專案做出貢獻,[投稿指南](docs/README.md)請閱讀。
如果您想為這個專案做出貢獻,[コントリービュートガイド](docs/README.md)請閱讀。

## 參考✨

Expand Down