-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into multiag-pnp
- Loading branch information
Showing
13 changed files
with
368 additions
and
308 deletions.
There are no files selected for viewing
299 changes: 76 additions & 223 deletions
299
.github/workflows/main.yml → .github/workflows/build.yml
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Lint and Format | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: [ master ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
wpiformat: | ||
name: "wpiformat" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Fetch all history and metadata | ||
run: | | ||
git fetch --prune --unshallow | ||
git checkout -b pr | ||
git branch -f master origin/master | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Install wpiformat | ||
run: pip3 install wpiformat | ||
- name: Run | ||
run: wpiformat | ||
- name: Check output | ||
run: git --no-pager diff --exit-code HEAD | ||
- name: Generate diff | ||
run: git diff HEAD > wpiformat-fixes.patch | ||
if: ${{ failure() }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: wpiformat fixes | ||
path: wpiformat-fixes.patch | ||
if: ${{ failure() }} | ||
javaformat: | ||
name: "Java Formatting" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
- run: | | ||
chmod +x gradlew | ||
./gradlew spotlessCheck | ||
client-lint-format: | ||
name: "PhotonClient Lint and Formatting" | ||
defaults: | ||
run: | ||
working-directory: photon-client | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install Dependencies | ||
run: npm ci | ||
- name: Check Linting | ||
run: npm run lint-ci | ||
- name: Check Formatting | ||
run: npm run format-ci | ||
server-index: | ||
name: "Check server index.html not changed" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Fetch all history and metadata | ||
run: | | ||
git fetch --prune --unshallow | ||
git checkout -b pr | ||
git branch -f master origin/master | ||
- name: Check index.html not changed | ||
run: git --no-pager diff --exit-code origin/master photon-server/src/main/resources/web/index.html |
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.