-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from PelionIoT/containers
Containers check in testnet, internal id to info & some GitHub actions
- Loading branch information
Showing
7 changed files
with
100 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,26 @@ jobs: | |
- run: git clone [email protected]:PelionIoT/scripts-internal.git | ||
#- run: git clone https://github.com/PelionIoT/scripts-internal.git | ||
- run: echo "." >scripts-internal/.nopyshcheck | ||
- run: .github/workflows/pysh-checker.sh ${{ github.event.repository.default_branch }} ${{ github.ref_name }} | ||
- run: .github/workflows/pysh-checker.sh ${{ github.event.repository.default_branch }} ${{ github.ref_name }} | ||
|
||
run-edge-testnet: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run edge-testnet | ||
run: fw-tools/edge-testnet | ||
|
||
versions-check: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: ./check_versions.sh | ||
|
||
misspell: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Run misspell (findings may not increase) | ||
run: | | ||
curl -L -o ./install-misspell.sh https://git.io/misspell | ||
sh ./install-misspell.sh | ||
bin/misspell -i mosquitto |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# pe-utils | ||
|
||
Utilities and a light-weight programs for Izuma Edge | ||
Utilities and light-weight programs for Izuma Edge. |
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,39 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2023, Izuma Networks | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
edgeinfover=$(head -n 32 "edge-info/edge-info" | tail -n 1) | ||
# Use grep with a regular expression to extract the version | ||
if [[ $edgeinfover =~ version=\"([^\"]+)\" ]]; then | ||
extracted_ver="${BASH_REMATCH[1]}" | ||
else | ||
echo "Version not found from line 32 in edge-info/edge-info -file ($edgeinfover)." | ||
exit 1 | ||
fi | ||
devidver=$(head -n 1 "identity-tools/developer_identity/VERSION") | ||
chgver=$(head -n 1 "CHANGELOG.md" | awk '{ for (i=1; i<=NF; i++) if ($i ~ /^[0-9]+\.[0-9]+\.[0-9]+$/) { print $i; exit } }') | ||
echo "ChangeLog version: $chgver" | ||
echo "edge-info version: $extracted_ver" | ||
echo "Identity tool version: $devidver" | ||
if [ "$extracted_ver" != "$devidver" ] || \ | ||
[ "$extracted_ver" != "$chgver" ]; then | ||
echo "Versions do not match! @extracted_ver vs. $devidver vs. $chgver" | ||
echo "Fix required." | ||
exit 1 | ||
else | ||
echo "Versions match." | ||
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
2.2.2 | ||
2.3.0 | ||
|