Skip to content

Commit

Permalink
Enable CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Nov 22, 2023
1 parent 8be568b commit 3c220a3
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ env:
CI_DEVICE_ADVISOR: arn:aws:iam::180635532705:role/CI_DeviceAdvisor_Role
CI_MQTT5_ROLE: arn:aws:iam::180635532705:role/CI_MQTT5_Role
CI_GREENGRASS_ROLE: arn:aws:iam::180635532705:role/CI_Greengrass_Role
CI_SHADOW_SERVICE_CLIENT_ROLE: arn:aws:iam::180635532705:role/CI_ShadowServiceClient_Role

jobs:

Expand Down Expand Up @@ -184,12 +185,33 @@ jobs:
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
chmod a+x builder
./builder build -p ${{ env.PACKAGE_NAME }}
- name: Running samples in CI setup
- name: Running samples and service clients tests in CI setup
run: |
python3 -m pip install boto3
sudo apt-get update -y
sudo apt-get install softhsm -y
softhsm2-util --version
- name: configure AWS credentials (Shadow)
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ env.CI_SHADOW_SERVICE_CLIENT_ROLE }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: run Shadow service client test for MQTT311
run: |
export PYTHONPATH=${{ github.workspace }}/servicetests/utils
python3 ./aws-iot-device-sdk-js-v2/servicetests/test_cases/test_shadow_update.py --mqtt-version 3
- name: run Shadow service client test for MQTT5
run: |
export PYTHONPATH=${{ github.workspace }}/servicetests/utils
python3 ./aws-iot-device-sdk-js-v2/servicetests/test_cases/test_shadow_update.py --mqtt-version 5
- name: run Named Shadow service client test for MQTT311
run: |
export PYTHONPATH=${{ github.workspace }}/servicetests/utils
python3 ./aws-iot-device-sdk-js-v2/servicetests/test_cases/test_shadow_update.py --mqtt-version 3 --use-named-shadow
- name: run Named Shadow service client test for MQTT5
run: |
export PYTHONPATH=${{ github.workspace }}/servicetests/utils
python3 ./aws-iot-device-sdk-js-v2/servicetests/test_cases/test_shadow_update.py --mqtt-version 5 --use-named-shadow
- name: configure AWS credentials (Connect and PubSub)
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down

0 comments on commit 3c220a3

Please sign in to comment.