Skip to content

Commit

Permalink
Uncommented the tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
NehaNaithani committed Jan 3, 2024
1 parent 0477cf3 commit be9a21c
Showing 1 changed file with 31 additions and 37 deletions.
68 changes: 31 additions & 37 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,46 +43,40 @@ jobs:
with:
gradle-version: 8.4
arguments: build
- name: Execute Gradle build
run: ./gradlew build
- name: 'ls jars'
run: |
cd packaging/iofog-agent/usr/bin
ls

#
# Integration:
# runs-on: ubuntu-20.04
# name: Integration
# needs: Build
# permissions:
# contents: 'read'
# id-token: 'write'
# packages: 'write'
# steps:
# - uses: actions/checkout@v3
# - run: sudo apt-get install jq
# - run: |
# curl https://packagecloud.io/install/repositories/iofog/iofogctl/script.deb.sh | sudo bash
# sudo apt-get install iofogctl=${{ env.IOFOGCTL_VERSION }}
# - name: 'Install bats'
# run: |
# sudo apt-get update -y
# sudo apt-get install -y bats
# - name: 'Deploy local ecn'
# shell: bash
# run: |
# sed -i "s|CONTROLLER_IMAGE=.*|CONTROLLER_IMAGE=\"${{ env.CONTROLLER_IMAGE }}\"|g" test/resources/env.sh
# sudo bash test/deploy_ecn.bash deployControlPlane
# - name: 'Run integration test'
# run: sudo bash test/run.bash
# - name: 'Delete ECN'
# if: always()
# run: sudo bash test/deploy_ecn.bash deleteECN
#

Integration:
runs-on: ubuntu-20.04
name: Integration
needs: Build
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install jq
- run: |
curl https://packagecloud.io/install/repositories/iofog/iofogctl/script.deb.sh | sudo bash
sudo apt-get install iofogctl=${{ env.IOFOGCTL_VERSION }}
- name: 'Install bats'
run: |
sudo apt-get update -y
sudo apt-get install -y bats
- name: 'Deploy local ecn'
shell: bash
run: |
sed -i "s|CONTROLLER_IMAGE=.*|CONTROLLER_IMAGE=\"${{ env.CONTROLLER_IMAGE }}\"|g" test/resources/env.sh
sudo bash test/deploy_ecn.bash deployControlPlane
- name: 'Run integration test'
run: sudo bash test/run.bash
- name: 'Delete ECN'
if: always()
run: sudo bash test/deploy_ecn.bash deleteECN

Publish:
runs-on: ubuntu-20.04
needs: [Build]
needs: [Build, Integration]
permissions:
contents: 'read'
id-token: 'write'
Expand Down

0 comments on commit be9a21c

Please sign in to comment.