-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub actions, README and license update & gson update (#60)
* README.md update / GitHub action * License upgrade * README.md - note about Ubuntu localhost * lwm2m/pom.xml - upgrade gson to latest (2.10.1) This resolves also the raised Dependabot issue. - The package com.google.code.gson:gson before 2.8.9 is vulnerable to Deserialization of Untrusted Data via the writeReplace() method in internal classes, which may lead to denial of service attacks. * pom.xml - update Mycilla & add exclusions for CI * Remove CircleCI Remove the whole .circleCI, we'll use GitHub actions instead.
- Loading branch information
1 parent
ad9f715
commit d301868
Showing
251 changed files
with
1,081 additions
and
327 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: PR-checker | ||
run-name: ${{ github.actor }} Pull Request - make all | ||
|
||
# This allows a subsequently queued workflow run to interrupt previous runs | ||
concurrency: | ||
group: java-coap-'${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
|
||
on: [push] | ||
jobs: | ||
mvn-clean-install-ci: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
PDM_BINARY_ARTIFACTS_DIR: pdm-binary-artifacts | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: "8" | ||
distribution: "temurin" | ||
- name: Cloning pdm-binary-artifacts | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: PelionIoT/pdm-binary-artifacts | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
path: ${{ env.PDM_BINARY_ARTIFACTS_DIR }} | ||
- name: Initializing pdm-binary-artifacts | ||
run: | | ||
cd $PDM_BINARY_ARTIFACTS_DIR | ||
bash init.sh --force | ||
- name: Check hostname | ||
run: | | ||
HOST=$(hostname) | ||
echo "Hostname is $HOST" | ||
if [ "$HOST" != "localhost" ]; then | ||
echo "Changing hostname to localhost, tests will fail otherwise." | ||
sudo hostname localhost | ||
fi | ||
- run: mvn clean install -P ci | ||
- name: Publish Test Report | ||
if: success() || failure() | ||
uses: scacap/action-surefire-report@v1 | ||
with: | ||
check_name: mvn clean install -P ci test report | ||
|
||
pysh-check: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get scripts internal... | ||
run: | | ||
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "[email protected]:" | ||
git clone [email protected]:PelionIoT/scripts-internal.git | ||
- name: Run no-more-lines w pysh-check | ||
run: | | ||
sudo apt install pycodestyle pydocstyle black | ||
echo "." >scripts-internal/.nopyshcheck | ||
scripts-internal/ci/more-lines-checker.sh ${{ github.event.repository.default_branch }} ${{ github.ref_name }} "scripts-internal/pysh-check/pysh-check.sh --workdir ." |
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/client/CoapClientBuilder.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/client/CoapRequestTarget.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/client/ObservationHandlerImpl.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/client/ObservationListener.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/client/RegistrationManager.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/client/SyncRequestTarget.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/CoapBlockException.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/CoapBlockTooLargeEntityException.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/CoapCodeException.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/CoapException.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/CoapMessageFormatException.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/CoapRequestEntityIncomplete.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/CoapRequestEntityTooLarge.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/CoapTimeoutException.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/CoapUnknownOptionException.java
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
5 changes: 4 additions & 1 deletion
5
coap-core/src/main/java/com/mbed/coap/exception/ObservationNotEstablishedException.java
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.