-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
196 changed files
with
3,705 additions
and
1,354 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
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,64 @@ | ||
name: Formatting checks | ||
|
||
on: | ||
pull_request: | ||
branches: [release, master] | ||
|
||
jobs: | ||
path-filter: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
server: ${{ steps.filter.outputs.server }} | ||
client: ${{ steps.filter.outputs.client }} | ||
steps: | ||
# Check out merge commit with the base branch in case this workflow is invoked via pull request | ||
- name: Checkout the merged commit from PR and base branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: refs/pull/${{ github.event.pull_request.number }}/merge | ||
|
||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
server: | ||
- 'app/server/**' | ||
client: | ||
- 'app/client/**' | ||
server-formatting: | ||
name: server-formatting | ||
needs: path-filter | ||
if: needs.path-filter.outputs.server == 'true' | ||
uses: ./.github/workflows/server-spotless.yml | ||
secrets: inherit | ||
with: | ||
pr: ${{ github.event.pull_request.number }} | ||
|
||
client-formatting: | ||
name: client-formatting | ||
needs: path-filter | ||
if: needs.path-filter.outputs.client == 'true' | ||
uses: ./.github/workflows/client-prettier.yml | ||
secrets: inherit | ||
with: | ||
pr: ${{ github.event.pull_request.number }} | ||
|
||
formatting-result: | ||
name: formatting-result | ||
needs: [server-formatting, client-formatting] | ||
if: always() | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Return status for formatting checks | ||
run: | | ||
if [[ "${{ needs.server-formatting.result }}" == "failure" || "${{ needs.client-formatting.result }}" == "failure" ]]; then | ||
echo "Formatting checks failed"; | ||
exit 1; | ||
else | ||
echo "Formatting checks successful"; | ||
exit 0; | ||
fi |
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 @@ | ||
# This workflow is responsible for running Spotless check on server code base | ||
name: Server Spotless Check | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
pr: | ||
description: "This is the PR number in case the workflow is being called in a pull request" | ||
required: false | ||
type: number | ||
|
||
# Change the working directory for all the jobs in this workflow | ||
defaults: | ||
run: | ||
working-directory: app/server | ||
|
||
jobs: | ||
spotless-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out merge commit with the base branch in case this workflow is invoked via pull request | ||
- name: Checkout the merged commit from PR and base branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: refs/pull/${{ inputs.pr }}/merge | ||
|
||
# Setup Java | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
# Run maven step for spotless check | ||
- name: Run spotless check | ||
run: mvn spotless:check |
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
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
Oops, something went wrong.