-
-
Notifications
You must be signed in to change notification settings - Fork 39.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into xap
- Loading branch information
Showing
5,680 changed files
with
138,027 additions
and
61,429 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
- future | ||
- develop | ||
pull_request: | ||
paths: | ||
- 'lib/python/**' | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,9 @@ jobs: | |
container: qmkfm/qmk_cli | ||
|
||
steps: | ||
- uses: rlespinasse/[email protected] | ||
- name: Install dependencies | ||
run: | | ||
apt-get update && apt-get install -y dos2unix | ||
- uses: actions/checkout@v2 | ||
with: | ||
|
@@ -31,12 +33,19 @@ jobs: | |
output: ' ' | ||
fileOutput: ' ' | ||
|
||
- name: Run qmk format-c and qmk format-python | ||
- name: Run qmk formatters | ||
shell: 'bash {0}' | ||
run: | | ||
qmk format-c --core-only -n $(< ~/files.txt) | ||
format_c_exit=$? | ||
qmk format-python -n | ||
format_python_exit=$? | ||
cat ~/files_added.txt ~/files_modified.txt > ~/files_changed.txt | ||
qmk format-c --core-only $(< ~/files_changed.txt) || true | ||
qmk format-python $(< ~/files_changed.txt) || true | ||
qmk format-text $(< ~/files_changed.txt) || true | ||
exit $((format_c_exit + format_python_exit)) | ||
- name: Fail when formatting required | ||
run: | | ||
git diff | ||
for file in $(git diff --name-only); do | ||
echo "File '${file}' Requires Formatting" | ||
echo "::error file=${file}::Requires Formatting" | ||
done | ||
test -z "$(git diff --name-only)" |
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,49 @@ | ||
name: Lint Format | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
container: qmkfm/qmk_cli | ||
|
||
steps: | ||
- name: Install dependencies | ||
run: | | ||
apt-get update && apt-get install -y dos2unix | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run qmk formatters | ||
shell: 'bash {0}' | ||
run: | | ||
qmk format-c -a | ||
qmk format-python -a | ||
qmk format-text -a | ||
git diff | ||
- uses: rlespinasse/[email protected] | ||
|
||
- name: Become QMK Bot | ||
run: | | ||
git config user.name 'QMK Bot' | ||
git config user.email '[email protected]' | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
if: ${{ github.repository == 'qmk/qmk_firmware'}} | ||
with: | ||
token: ${{ secrets.QMK_BOT_TOKEN }} | ||
delete-branch: true | ||
branch: bugfix/format_${{ env.GITHUB_REF_SLUG }} | ||
author: QMK Bot <[email protected]> | ||
committer: QMK Bot <[email protected]> | ||
commit-message: Format code according to conventions | ||
title: '[CI] Format code according to conventions' |
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,30 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
paths: | ||
- 'builddefs/**' | ||
- 'quantum/**' | ||
- 'platforms/**' | ||
- 'tmk_core/**' | ||
- 'tests/**' | ||
- '*.mk' | ||
- 'Makefile' | ||
- '.github/workflows/unit_test.yml' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
container: qmkfm/base_container | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Run tests | ||
run: make test:all |
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.