summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorRina Fujino <18257209+rina23q@users.noreply.github.com>2022-06-10 14:36:12 +0200
committerGitHub <noreply@github.com>2022-06-10 14:36:12 +0200
commitc42bd55cfd809903e5a46e3afc23aa80e25609f5 (patch)
tree0927e0afca0d3cddad9b443cc56e0b8ca63ccede /.github
parent71b626d0a2b99e14e2531c4571fcc0c605252a9c (diff)
Clean up workflows and update using crates version (#1188)
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-workflow.yml15
-rw-r--r--.github/workflows/ci_pipeline.yml7
-rw-r--r--.github/workflows/commit-workflow-optional.yml3
-rw-r--r--.github/workflows/commit-workflow.yml3
-rw-r--r--.github/workflows/doc-check.yml5
-rw-r--r--.github/workflows/gh-pages.yml5
-rw-r--r--.github/workflows/hosted-post-merge_version_update.yml8
-rw-r--r--.github/workflows/integration-test-workflow.yml308
-rw-r--r--.github/workflows/system-test-offsite.yml194
-rw-r--r--.github/workflows/system-test-workflow.yml42
-rw-r--r--.github/workflows/update-tedge-ref-docs.yml7
11 files changed, 17 insertions, 580 deletions
diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml
index 17c9e673..e2a38ce4 100644
--- a/.github/workflows/build-workflow.yml
+++ b/.github/workflows/build-workflow.yml
@@ -1,13 +1,9 @@
name: build-workflow
on:
- workflow_run:
- workflows: ["commit-workflow"]
- branches: [main]
- types:
- - completed
+ push:
+ branches: [ main, 'release-*' ]
workflow_dispatch:
- branches: [main]
env:
CARGO_TERM_COLOR: always
@@ -16,7 +12,6 @@ jobs:
build_amd64:
name: Build tedge and mapper Debian packages for amd64
runs-on: Ubuntu-20.04
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
@@ -38,7 +33,7 @@ jobs:
# https://github.com/marketplace/actions/rust-cargo
with:
command: install
- args: cargo-deb --version 1.34.2
+ args: cargo-deb --version 1.38.1
- name: Build tedge debian package
uses: actions-rs/cargo@v1
@@ -134,7 +129,7 @@ jobs:
build_matrix_arm:
name: Build tedge and mapper Debian for armv7
runs-on: Ubuntu-20.04
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
+
strategy:
matrix:
# Currently only arm targets, as we use a custom strip binary !
@@ -168,7 +163,7 @@ jobs:
# https://github.com/marketplace/actions/rust-cargo
with:
command: install
- args: cargo-deb --version 1.34.2
+ args: cargo-deb --version 1.38.1
- name: install cargo-strip
uses: actions-rs/cargo@v1
diff --git a/.github/workflows/ci_pipeline.yml b/.github/workflows/ci_pipeline.yml
index d7ba7bba..1783ef52 100644
--- a/.github/workflows/ci_pipeline.yml
+++ b/.github/workflows/ci_pipeline.yml
@@ -13,9 +13,8 @@ name: ci_pipeline
on:
push:
- branches: [main, 'release-*']
+ branches: [ main, 'release-*' ]
workflow_dispatch:
- branches: [main, 'release-*']
env:
CARGO_TERM_COLOR: always
@@ -154,7 +153,7 @@ jobs:
# https://github.com/marketplace/actions/rust-cargo
with:
command: install
- args: cargo-deb --version 1.34.2
+ args: cargo-deb --version 1.38.1
- name: Build tedge debian package
uses: actions-rs/cargo@v1
@@ -283,7 +282,7 @@ jobs:
# https://github.com/marketplace/actions/rust-cargo
with:
command: install
- args: cargo-deb --version 1.34.2
+ args: cargo-deb --version 1.38.1
- name: install cargo-strip
uses: actions-rs/cargo@v1
diff --git a/.github/workflows/commit-workflow-optional.yml b/.github/workflows/commit-workflow-optional.yml
index 90571c3b..31815757 100644
--- a/.github/workflows/commit-workflow-optional.yml
+++ b/.github/workflows/commit-workflow-optional.yml
@@ -1,10 +1,7 @@
name: commit-workflow-optional
on:
- push:
- branches: [main]
workflow_dispatch:
- branches: [main]
pull_request:
env:
diff --git a/.github/workflows/commit-workflow.yml b/.github/workflows/commit-workflow.yml
index 06acad5d..4cf28d15 100644
--- a/.github/workflows/commit-workflow.yml
+++ b/.github/workflows/commit-workflow.yml
@@ -1,10 +1,7 @@
name: commit-workflow
on:
- push:
- branches: [main]
workflow_dispatch:
- branches: [main]
pull_request:
env:
diff --git a/.github/workflows/doc-check.yml b/.github/workflows/doc-check.yml
index 8e9d2cb7..c679eb12 100644
--- a/.github/workflows/doc-check.yml
+++ b/.github/workflows/doc-check.yml
@@ -2,9 +2,8 @@ name: Documentation check
on:
workflow_dispatch:
- branches: [ main ]
pull_request:
- branches: [ main ]
+ branches: [ main, 'release-*' ]
paths:
# Any files in the /docs directory at the root of the repository.
- 'docs/**'
@@ -21,7 +20,7 @@ jobs:
uses: peaceiris/actions-mdbook@v1
# https://github.com/marketplace/actions/mdbook-action
with:
- mdbook-version: "0.4.10"
+ mdbook-version: "0.4.18"
# mdbook-version: 'latest'
- name: Install mdbook-toc
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index cd5f9364..d7b8ee70 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -2,8 +2,7 @@ name: Build and Deploy to Github Pages
on:
push:
- branches:
- - main # Here source code branch is `master`, it could be other branch
+ branches: [ main ]
jobs:
deploy:
@@ -16,7 +15,7 @@ jobs:
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
- mdbook-version: "0.4.10"
+ mdbook-version: "0.4.18"
# mdbook-version: 'latest'
- uses: actions-rs/install@v0.1
diff --git a/.github/workflows/hosted-post-merge_version_update.yml b/.github/workflows/hosted-post-merge_version_update.yml
index de90dc68..70525859 100644
--- a/.github/workflows/hosted-post-merge_version_update.yml
+++ b/.github/workflows/hosted-post-merge_version_update.yml
@@ -1,7 +1,7 @@
name: hosted-post-merge_version_update
+
on:
workflow_dispatch:
- branches: [main]
env:
CARGO_TERM_COLOR: always
@@ -31,13 +31,13 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: install
- args: --version 0.16.2 cargo-release
+ args: --version 0.21.0 cargo-release
- name: Increment version and tag
uses: actions-rs/cargo@v1
with:
command: release
- args: patch --skip-publish --skip-push --skip-tag -vv --no-dev-version --no-confirm
+ args: patch --no-publish --no-push --no-tag -vv --no-dev-version --no-confirm
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
@@ -46,4 +46,4 @@ jobs:
delete-branch: true
title: Patch version bump
body: Patch version bump
- reviewers: itsyitsy
+ reviewers: rina23q
diff --git a/.github/workflows/integration-test-workflow.yml b/.github/workflows/integration-test-workflow.yml
deleted file mode 100644
index 46dd2cf5..00000000
--- a/.github/workflows/integration-test-workflow.yml
+++ /dev/null
@@ -1,308 +0,0 @@
-name: integration-test-workflow
-
-on:
- workflow_dispatch:
- branches: [main]
- workflow_run:
- workflows: ["build-workflow"]
- branches: [main]
- types:
- - completed
-env:
- CARGO_TERM_COLOR: always
-
-jobs:
- install-and-use-amd64:
- runs-on: Ubuntu-20.04
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
-
- steps:
- - name: checkout
- uses: actions/checkout@v2
-
- - name: Download artifact
- uses: dawidd6/action-download-artifact@v2
- # https://github.com/marketplace/actions/download-workflow-artifact
- with:
- github_token: ${{secrets.GITHUB_TOKEN}}
- workflow: build-workflow.yml
- workflow_conclusion: success
- branch: main
- name: debian-packages-amd64
- path: debian-package_unpack
-
- - name: Workaround Stop collectd mapper
- run: sudo systemctl stop tedge-mapper-collectd
- continue-on-error: true
-
- - name: disconnect c8y
- run: sudo tedge disconnect c8y
- # We need to continue when there is no tedge already installed
- continue-on-error: true
-
- - name: disconnect az
- run: sudo tedge disconnect az
- # We need to continue when there is no tedge already installed
- continue-on-error: true
-
- - name: purge
- run: sudo dpkg -P c8y_configuration_plugin tedge_agent c8y_log_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge_watchdog tedge mosquitto libmosquitto1 collectd-core
-
- - name: install mosquitto
- run: sudo apt-get --assume-yes install mosquitto
-
- - name: install libmosquitto1
- run: sudo apt-get --assume-yes install libmosquitto1
-
- - name: install collectd-core
- run: sudo apt-get --assume-yes install collectd-core
-
- - name: install tedge package
- run: sudo dpkg -i ./debian-package_unpack/tedge_0.*_amd64.deb
-
- - name: install tedge mapper package
- run: sudo dpkg -i ./debian-package_unpack/tedge_mapper_*_amd64.deb
-
- - name: install tedge agent package
- run: sudo dpkg -i ./debian-package_unpack/tedge_agent_*_amd64.deb
-
- - name: install tedge watchdog package
- run: sudo dpkg -i ./debian-package_unpack/tedge_watchdog_*_amd64.deb
-
- - name: install tedge plugin packages
- run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_amd64.deb
-
- - name: install c8y plugin packages
- run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb
-
- - name: run tedge help
- run: tedge --help
-
- # replace the default config file with tedge custom config file
- - name: configure collectd
- run: sudo cp "/etc/tedge/contrib/collectd/collectd.conf" "/etc/collectd/collectd.conf"
-
- cargo-test-features:
- name: Run cargo test features
- runs-on: Ubuntu-20.04
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
- needs: install-and-use-amd64
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: enable toolchain via github action
- uses: actions-rs/toolchain@v1
- with:
- toolchain: 1.58.1
- override: true
-
- - name: Enable cache
- # https://github.com/marketplace/actions/rust-cache
- uses: Swatinem/rust-cache@v1
-
- - name: Download artifact
- uses: dawidd6/action-download-artifact@v2
- # https://github.com/marketplace/actions/download-workflow-artifact
- with:
- github_token: ${{secrets.GITHUB_TOKEN}}
- workflow: build-workflow.yml
- workflow_conclusion: success
- branch: main
- name: debian-packages-amd64
- path: debian-package_unpack
-
- - name: install mosquitto
- run: sudo apt-get --assume-yes install mosquitto
-
- - name: install libmosquitto1
- run: sudo apt-get --assume-yes install libmosquitto1
-
- - name: install collectd-core
- run: sudo apt-get --assume-yes install collectd-core
-
- - name: install tedge package
- run: sudo dpkg -i ./debian-package_unpack/tedge_0.*_amd64.deb
-
- - name: install tedge mapper package
- run: sudo dpkg -i ./debian-package_unpack/tedge_mapper_*_amd64.deb
-
- - name: install tedge agent package
- run: sudo dpkg -i ./debian-package_unpack/tedge_agent_*_amd64.deb
-
- - name: install tedge watchdog package
- run: sudo dpkg -i ./debian-package_unpack/tedge_watchdog_*_amd64.deb
-
- - name: install tedge plugin packages
- run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_amd64.deb
-
- - name: install c8y plugin packages
- run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb
-
- - name: Cargo test features (compile)
- # If we do not compile in advance the timing in the test run
- # will not work out as some parts are still compiling during the run
- uses: actions-rs/cargo@v1
- # https://github.com/marketplace/actions/rust-cargo
- with:
- command: test
- args: --verbose --no-run --features integration-test
-
- - name: Cargo build dummy plugin
- uses: actions-rs/cargo@v1
- with:
- command: build
- args: -p tedge_dummy_plugin
-
- # To run the test for features here is kind of experimental
- # they could fail if GitHub blocks external connections.
- # It seems like they rarely do.
- - name: Cargo test features
- uses: actions-rs/cargo@v1
- # https://github.com/marketplace/actions/rust-cargo
- with:
- command: test
- args: --verbose --features integration-test,requires-sudo -- \
- --skip sending_and_receiving_a_message
-
- install-and-use-rpi:
- runs-on: [self-hosted, Linux, ARM, onsite]
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
-
- steps:
- - name: checkout
- uses: actions/checkout@v2
-
- - name: Download artifact
- uses: dawidd6/action-download-artifact@v2
- # https://github.com/marketplace/actions/download-workflow-artifact
- with:
- github_token: ${{secrets.GITHUB_TOKEN}}
- workflow: build-workflow.yml
- workflow_conclusion: success
- branch: main
- name: debian-packages-armv7-unknown-linux-gnueabihf
- path: debian-package_unpack
-
- - name: Workaround Stop collectd mapper
- run: sudo systemctl stop tedge-mapper-collectd
- continue-on-error: true
-
- - name: disconnect c8y
- run: sudo tedge disconnect c8y
- # We need to continue when there is no tedge already installed
- continue-on-error: true
-
- - name: disconnect az
- run: sudo tedge disconnect az
- # We need to continue when there is no tedge already installed
- continue-on-error: true
-
- - name: Stop apama
- run: sudo systemctl stop apama
- continue-on-error: true
-
- # mosquitto-clients is required for system test only, but has dependency on libmosquitto1.
- # therefore, we need to purge it here, and mosquitto-clients is required only for RPi.
- - name: purge
- run: sudo dpkg -P c8y_configuration_plugin tedge_agent c8y_log_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge_watchdog tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd
-
- - name: install mosquitto
- run: sudo apt-get --assume-yes install mosquitto
-
- - name: install libmosquitto1
- run: sudo apt-get --assume-yes install libmosquitto1
-
- - name: install mosquitto-clients
- run: sudo apt-get --assume-yes install mosquitto-clients
-
- - name: install collectd-core
- run: sudo apt-get --assume-yes install collectd-core collectd
-
- - name: install tedge package
- run: sudo dpkg -i ./debian-package_unpack/tedge_0.*_armhf.deb
-
- - name: install tedge mapper package
- run: sudo dpkg -i ./debian-package_unpack/tedge_mapper_*_armhf.deb
-
- - name: install tedge agent package
- run: sudo dpkg -i ./debian-package_unpack/tedge_agent_*_armhf.deb
-
- - name: install tedge watchdog package
- run: sudo dpkg -i ./debian-package_unpack/tedge_watchdog_*_armhf.deb
-
- - name: install tedge plugin packages
- run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb
-
- - name: install c8y plugin packages
- run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_armhf.deb
-
- - name: run tedge help
- run: tedge --help
-
- # replace the default config file with tedge custom config file
- - name: configure collectd
- run: sudo cp "/etc/tedge/contrib/collectd/collectd.conf" "/etc/collectd/collectd.conf"
-
- - name: Download artifact
- uses: dawidd6/action-download-artifact@v2
- # https://github.com/marketplace/actions/download-workflow-artifact
- with:
- github_token: ${{secrets.GITHUB_TOKEN}}
- workflow: build-workflow.yml
- workflow_conclusion: success
- branch: main
- name: sawtooth_publisher_armv7-unknown-linux-gnueabihf
- path: /home/pi/examples
-
- - name: chmod publisher
- run: chmod +x /home/pi/examples/sawtooth_publisher
-
- - name: Download artifact
- uses: dawidd6/action-download-artifact@v2
- # https://github.com/marketplace/actions/download-workflow-artifact
- with:
- github_token: ${{secrets.GITHUB_TOKEN}}
- workflow: build-workflow.yml
- workflow_conclusion: success
- branch: main
- name: tedge_dummy_plugin_armv7-unknown-linux-gnueabihf
- path: /home/pi/tedge_dummy_plugin
-
- - name: chmod dummy_plugin
- run: chmod +x /home/pi/tedge_dummy_plugin/tedge_dummy_plugin
-
- - name: Configure Bridge
- run: ./ci/configure_bridge.sh
- env:
- C8YPASS: ${{ secrets.SECRET_C8YPASS }}
- C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}
- C8YTENANT: ${{secrets.SECRET_C8YTENANT}}
- C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE }}
- TEBASEDIR: /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/
- EXAMPLEDIR: /home/pi/examples
- C8YURL: https://thin-edge-io.eu-latest.cumulocity.com
- IOTHUBNAME: ${{ secrets.IOTHUBNAME }}
-
- - name: Run smoke test for Cumulocity
- run: ./ci/ci_smoke_test_c8y.sh
- env:
- C8YPASS: ${{ secrets.SECRET_C8YPASS }}
- C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}
- C8YTENANT: ${{secrets.SECRET_C8YTENANT}}
- C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE }}
- TEBASEDIR: /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/
- EXAMPLEDIR: /home/pi/examples
- C8YURL: https://thin-edge-io.eu-latest.cumulocity.com
- IOTHUBNAME: ${{ secrets.IOTHUBNAME }}
-
- - name: Run Smoke Test for Azure
- run: ./ci/ci_smoke_test_az.sh
- env:
- C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE }}
- SASKEYQUEUE: ${{ secrets.SASKEYQUEUE }}
- SASKEYIOTHUB: ${{ secrets.SASKEYIOTHUB }}
- AZUREENDPOINT: ${{ secrets.AZUREENDPOINT }}
- AZUREEVENTHUB: ${{ secrets.AZUREEVENTHUB }}
- IOTHUBNAME: ${{ secrets.IOTHUBNAME }}
diff --git a/.github/workflows/system-test-offsite.yml b/.github/workflows/system-test-offsite.yml
deleted file mode 100644
index 9d284f32..00000000
--- a/.github/workflows/system-test-offsite.yml
+++ /dev/null
@@ -1,194 +0,0 @@
-name: system-test-offsite
-
-on:
- workflow_dispatch:
- branches: [ main]
- workflow_run:
- workflows: ["integration-test-workflow"]
- branches: [main]
- types:
- - completed
-
-env:
- CARGO_TERM_COLOR: always
-
-jobs:
-
- install-and-use-rpi-all-offsite:
- runs-on: [self-hosted, Linux, ARM, offsiteall ]
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
-
- steps:
- - name: checkout
- uses: actions/checkout@v2
-
- - name: Download artifact debian packages
- uses: dawidd6/action-download-artifact@v2
- # https://github.com/marketplace/actions/download-workflow-artifact
- with:
- github_token: ${{secrets.GITHUB_TOKEN}}
- workflow: build-workflow.yml
- workflow_conclusion: success
- branch: main
- name: debian-packages-armv7-unknown-linux-gnueabihf
- path: debian-package_unpack
-
- - name: Workaround Stop collectd mapper
- run: sudo systemctl stop tedge-mapper-collectd
- continue-on-error: true
-
- - name: delete old publisher
- run: rm -f /home/pi/examples/sawtooth_publisher
-
- - name: Download artifact examples
- uses: dawidd6/action-download-artifact@v2
- # https://github.com/marketplace/actions/download-workflow-artifact
- with:
- github_token: ${{secrets.GITHUB_TOKEN}}
- workflow: build-workflow.yml
- workflow_conclusion: success
- branch: main
- name: sawtooth_publisher_armv7-unknown-linux-gnueabihf
- path: /home/pi/examples
-
- - name: purge packages
- run: sudo dpkg -P c8y_configuration_plugin tedge_agent c8y_log_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge_watchdog tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd
-
- - name: install packages
- run: sudo apt-get --assume-yes install mosquitto-clients mosquitto libmosquitto1 collectd-core collectd
-
- - name: install mosquitto
- run: sudo apt-get --assume-yes install mosquitto
-
- - name: install libmosquitto1
- run: sudo apt-get --assume-yes install libmosquitto1
-
- - name: install mosquitto-clients
- run: sudo apt-get --assume-yes install mosquitto-clients
-
- - name: install collectd-core
- run: sudo apt-get --assume-yes install collectd-core collectd
-
- - name: install tedge package
- run: sudo dpkg -i ./debian-package_unpack/tedge_0.*_armhf.deb
-
- - name: install tedge mapper package
- run: sudo dpkg -i ./debian-package_unpack/tedge_mapper_*_armhf.deb
-
- - name: install tedge agent package
- run: sudo dpkg -i ./debian-package_unpack/tedge_agent_*_armhf.deb
-
- - name: install tedge watchdog package
- run: sudo dpkg -i ./debian-package_unpack/tedge_watchdog_*_armhf.deb
-
- - name: install tedge plugin packages
- run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb
-
- - name: install c8y plugin packages
- run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_armhf.deb
-
- - name: run tedge help
- run: tedge --help
-
- # replace the default config file with tedge custom config file
- - name: configure collectd
- run: sudo cp "/etc/tedge/contrib/collectd/collectd.conf" "/etc/collectd/collectd.conf"
-
- - name: chmod publisher
- run: chmod +x /home/pi/examples/sawtooth_publisher
-
- - name: Download artifact
- uses: dawidd6/action-download-artifact@v2
- # https://github.com/marketplace/actions/download-workflow-artifact
- with:
- github_token: ${{secrets.GITHUB_TOKEN}}
- workflow: build-workflow.yml
- workflow_conclusion: success
- branch: main
- name: tedge_dummy_plugin_armv7-unknown-linux-gnueabihf
- path: /home/pi/tedge_dummy_plugin
-
- - name: chmod dummy_plugin
- run: chmod +x /home/pi/tedge_dummy_plugin/tedge_dummy_plugin
-
- - name: Configure Bridge
- run: ./ci/configure_bridge.sh
- env:
- C8YPASS: ${{ secrets.SECRET_C8YPASS }}
- C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}
- C8YTENANT: ${{secrets.SECRET_C8YTENANT}}
- C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE_OFFSITE_ALL }}
- TEBASEDIR: /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/
- EXAMPLEDIR: /home/pi/examples
- C8YURL: https://thin-edge-io.eu-latest.cumulocity.com
-
- - name: Run Smoke Test
- run: ./ci/ci_smoke_test_c8y.sh
- env:
- C8YPASS: ${{ secrets.SECRET_C8YPASS }}
- C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}
- C8YTENANT: ${{secrets.SECRET_C8YTENANT}}
- C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE_OFFSITE_ALL }}
- C8YDEVICEID: ${{ secrets.SECRET_C8YDEVICEID_OFFSITE_ALL }}
- TEBASEDIR: /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/
- EXAMPLEDIR: /home/pi/examples
- C8YURL: https://thin-edge-io.eu-latest.cumulocity.com
-
-# System Test Workflow
-
- system-test-all-offsite:
- needs: [install-and-use-rpi-all-offsite]
- runs-on: [self-hosted, Linux, ARM, offsiteall]
- continue-on-error: true
-
- steps:
-
- - name: checkout
- uses: actions/checkout@v2
-
- - name: Run all Tests
- continue-on-error: true
- run: bash ./ci/ci_run_all_tests.sh
- env:
- C8YPASS: ${{ secrets.SECRET_C8YPASS }}
- C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}
- C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE_OFFSITE_ALL }}
- C8YTENANT: ${{secrets.SECRET_C8YTENANT}}
- C8YDEVICEID: ${{ secrets.SECRET_C8YDEVICEID_OFFSITE_ALL }}
- TEBASEDIR: /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/
- EXAMPLEDIR: /home/pi/examples
- C8YURL: https://thin-edge-io.eu-latest.cumulocity.com
-
- - name: Run all plugin tests
- continue-on-error: true
- run: bash ./ci/ci_run_all_plugin_tests.sh
- env:
- C8YPASS: ${{ secrets.SECRET_C8YPASS }}
- C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}
- C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE_OFFSITE_ALL }}
- C8YTENANT: ${{secrets.SECRET_C8YTENANT}}
- C8YDEVICEID: ${{ secrets.SECRET_C8YDEVICEID_OFFSITE_ALL }}
- TEBASEDIR: /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/
- EXAMPLEDIR: /home/pi/examples
- C8YURL: https://thin-edge-io.eu-latest.cumulocity.com
-
- - name: Run all sm tests
- continue-on-error: true
- run: bash ./ci/ci_run_all_sm_tests.sh
- env:
- C8YPASS: ${{ secrets.SECRET_C8YPASS }}
- C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}
- C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE_OFFSITE_ALL }}
- C8YTENANT: ${{secrets.SECRET_C8YTENANT}}
- C8YDEVICEID: ${{ secrets.SECRET_C8YDEVICEID_OFFSITE_ALL }}
- TEBASEDIR: /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/
- EXAMPLEDIR: /home/pi/examples
- C8YURL: https://thin-edge-io.eu-latest.cumulocity.com
-
- - name: upload results as zip
- # https://github.com/marketplace/actions/upload-a-build-artifact
- uses: actions/upload-artifact@v2
- with:
- name: offsite_results_${{ github.run_number }}
- path: tests/
-
diff --git a/.github/workflows/system-test-workflow.yml b/.github/workflows/system-test-workflow.yml
deleted file mode 100644
index 7284c6d7..00000000
--- a/.github/workflows/system-test-workflow.yml
+++ /dev/null
@@ -1,42 +0,0 @@
-name: system-test-workflow
-
-on:
-
- workflow_dispatch:
- branches: [ main ]
- workflow_run:
- workflows: ["integration-test-workflow"]
- branches: [main]
- types:
- - completed
-
-env:
- CARGO_TERM_COLOR: always
-
-jobs:
- system-test:
- runs-on: [self-hosted, Linux, ARM]
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
-
- steps:
-
- - name: checkout
- uses: actions/checkout@v2
-
- - name: Run all Tests
- run: bash ./ci/ci_run_all_tests.sh
- env:
- C8YPASS: ${{ secrets.SECRET_C8YPASS }}
- C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}
- C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE }}
- C8YTENANT: ${{secrets.SECRET_C8YTENANT}}
- C8YURL: https://thin-edge-io.eu-latest.cumulocity.com
- TEBASEDIR: /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/
- EXAMPLEDIR: /home/pi
-
- - name: upload results as zip
- # https://github.com/marketplace/actions/upload-a-build-artifact
- uses: actions/upload-artifact@v2
- with:
- name: results
- path: tests/
diff --git a/.github/workflows/update-tedge-ref-docs.yml b/.github/workflows/update-tedge-ref-docs.yml
index 2d42e57b..48cdaf82 100644
--- a/.github/workflows/update-tedge-ref-docs.yml
+++ b/.github/workflows/update-tedge-ref-docs.yml
@@ -1,11 +1,6 @@
name: update-tedge-reference-documents
on:
- # run after version bump-up workflow
- workflow_run:
- workflows: [ "hosted-post-merge_version_update" ]
- types:
- - completed
# trigger manually
workflow_dispatch:
# runs automatically on 00:00 UTC on 1st of every month
@@ -50,5 +45,5 @@ jobs:
delete-branch: true
title: Create tedge reference docs
body: Create tedge reference docs
- reviewers: itsyitsy
+ reviewers: rina23q
branch: create-pull-request/update-tedge-ref-doc