-
Notifications
You must be signed in to change notification settings - Fork 2
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
13 changed files
with
101 additions
and
104 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
22 changes: 12 additions & 10 deletions
22
.github/workflows/check.yml → .github/workflows/pr-check-suite.yml
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 |
---|---|---|
@@ -1,31 +1,33 @@ | ||
name: Check pipeline | ||
name: Check PR | ||
|
||
on: | ||
# Run on pull request | ||
pull_request: | ||
branches: [main, develop] | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
# Sets permissions of the GITHUB_TOKEN | ||
permissions: | ||
contents: read | ||
contents: write | ||
pages: write | ||
id-token: write | ||
pull-requests: read | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: true | ||
pull-requests: write | ||
|
||
jobs: | ||
# Sonarcloud analysis | ||
analysis: | ||
uses: ./.github/workflows/sonarcloud.yml | ||
secrets: inherit | ||
|
||
# CI | ||
build: | ||
needs: analysis | ||
uses: ./.github/workflows/build.yml | ||
|
||
# Storybook test on vercel env | ||
test: | ||
needs: build | ||
uses: ./.github/workflows/test.yml | ||
|
||
# Trigger depfu merge | ||
trigger-automerge: | ||
needs: [test, analysis] | ||
uses: ./.github/workflows/pr-depfu-merge.yml |
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,28 @@ | ||
name: Merge Depfu PR | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
approve-pr: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.pull_request.user.login == 'depfu[bot]' }} | ||
steps: | ||
- name: Approve PR | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
merge-pr: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.pull_request.user.login == 'depfu[bot]' }} | ||
steps: | ||
- name: Squash PR | ||
run: gh pr merge --auto --squash "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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
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
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
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
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
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,3 @@ | ||
sonar.projectKey=volverjs_zod-vue-i18n | ||
sonar.organization=volverjs | ||
sonar.coverage.exclusions=test/** |
Oops, something went wrong.