-
Notifications
You must be signed in to change notification settings - Fork 889
Migrate from Travis to GitHub Actions #1526
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0b4f8cc
Don't run unit tests under Travis.
crankyoldgit e3397d5
Attempt to build some examples using Github Actions & PlatformIO
crankyoldgit 83db277
More workflows & changes
crankyoldgit 5a910e9
Fix some python linter errors
crankyoldgit 92c389a
Another attempt to fix linter error
crankyoldgit 861c24f
Try to fix cpplint
crankyoldgit 57ad14c
Move the Misc checks to GitHub Actions.
crankyoldgit 34911f7
Fix errors library manager workflow
crankyoldgit d489a55
Another fix.
crankyoldgit ec6b18b
Fix error in name
crankyoldgit 85ec8cb
Move doxygen check to workflow
crankyoldgit de215d2
Update status badges.
crankyoldgit 9dd8293
Fix badge issue
crankyoldgit efb814c
Use better names in the Workflows
crankyoldgit 6433ddb
Make the new status badges be links to the relevent actions.
crankyoldgit d4270c4
Hopefully with the correct URL this time.
crankyoldgit 90984e4
Rename workflow files & remove Travis references.
crankyoldgit d62bd5b
Add "-j 2" for google test suite
crankyoldgit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,37 @@ | ||
| name: Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
|
|
||
| jobs: | ||
| Build_Examples: | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Cache pip | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pip- | ||
| - name: Cache PlatformIO | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.platformio | ||
| key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v2 | ||
| - name: Install PlatformIO | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install --upgrade platformio | ||
| - name: Build all the examples | ||
| env: | ||
| PLATFORMIO_BUILD_CACHE_DIR: "../../.pio/buildcache" | ||
| run: find . -name platformio.ini -type f | sed 's,/platformio.ini$,,' | xargs --verbose -n 1 pio run --jobs 2 --project-dir |
This file contains hidden or 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,21 @@ | ||
| # This is a basic workflow that is triggered on push/PRs to the master branch. | ||
|
|
||
| name: Documentation | ||
|
|
||
| # Controls when the action will run. Workflow runs when manually triggered using the UI | ||
| # or API. | ||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
|
|
||
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
| jobs: | ||
| Doxygen: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: SteffenSeckler/[email protected] | ||
| with: | ||
| fail-on-warnings: true |
This file contains hidden or 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: Code Lint | ||
|
|
||
| on: [push] | ||
|
|
||
| jobs: | ||
| Linters: | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Set up Python 3.9 | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: 3.9 | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install pylint | ||
| pip install cpplint | ||
| - name: Analysing the code with pylint | ||
| run: | | ||
| shopt -s nullglob | ||
| pylint -d F0001 {src,test,tools}/*.py | ||
| - name: Analysing the code with cpplint | ||
| run: | | ||
| shopt -s nullglob | ||
| cpplint --extensions=c,cc,cpp,ino --headers=h,hpp {src,src/locale,test,tools}/*.{h,c,cc,cpp,hpp,ino} examples/*/*.{h,c,cc,cpp,hpp,ino} |
This file contains hidden or 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,54 @@ | ||
| # This is a basic workflow that is triggered on push/PRs to the master branch. | ||
|
|
||
| name: Library Linter | ||
|
|
||
| # Controls when the action will run. Workflow runs when manually triggered using the UI | ||
| # or API. | ||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
|
|
||
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
| jobs: | ||
| arduino-library-manager-lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: arduino/arduino-lint-action@v1 | ||
| with: | ||
| library-manager: update | ||
| compliance: strict | ||
| # Detect case-insensitive file duplication in the same directory. | ||
| # This can cause a problem for the Arduino IDE on Windows & Macs. | ||
| # See: | ||
| # - https://github.com/arduino/Arduino/issues/11441 | ||
| # - https://github.com/crankyoldgit/IRremoteESP8266/issues/1451 | ||
| detect-duplicate-files: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Look for case-insensitive filename collisions. | ||
| run: DUPS=$(find . -path '*/.pio' -prune -o -print | sort | uniq -D -i); if [[ -n "${DUPS}" ]]; then echo -e "Duplicates found:\n${DUPS}"; false; fi | ||
| version-number-consitent: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Check all the version numbers match. | ||
| run: | | ||
| LIB_VERSION=$(egrep "^#define\s+_IRREMOTEESP8266_VERSION_\s+" src/IRremoteESP8266.h | cut -d\" -f2) | ||
| test ${LIB_VERSION} == "$(jq -r .version library.json)" | ||
| grep -q "^version=${LIB_VERSION}$" library.properties | ||
| examples-have-platformio_ini: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Check that every example directory has a platformio.ini file. | ||
| run: (status=0; for dir in examples/*; do if [[ ! -f "${dir}/platformio.ini" ]]; then echo "${dir} has no 'platform.ini' file!"; status=1; fi; done; exit ${status}) | ||
| supported-devices-check: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Check that all files have supported sections. | ||
| run: (SUPPORTED_OUTPUT=$(python3 tools/scrape_supported_devices.py --noout --alert 2>&1); if [[ $? -ne 0 || -n "${SUPPORTED_OUTPUT}" ]]; then echo "${SUPPORTED_OUTPUT}"; exit 1; fi) |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.