diff options
Diffstat (limited to '.github/workflows/package-smoketest.yml')
-rw-r--r-- | .github/workflows/package-smoketest.yml | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/.github/workflows/package-smoketest.yml b/.github/workflows/package-smoketest.yml index 49bd91669..27272a6e2 100644 --- a/.github/workflows/package-smoketest.yml +++ b/.github/workflows/package-smoketest.yml @@ -1,13 +1,22 @@ -name: Package ISO Test +name: VyOS ISO integration Test on: - pull_request: + pull_request_target: branches: - current + - circinus + +permissions: + pull-requests: write + contents: read + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed for PR comments jobs: build: runs-on: ubuntu-24.04 + timeout-minutes: 45 container: image: vyos/vyos-build:current options: --sysctl net.ipv6.conf.lo.disable_ipv6=0 --privileged @@ -24,9 +33,7 @@ jobs: - name: Clone vyos-1x source code uses: actions/checkout@v4 with: - repository: vyos/vyos-1x path: packages/vyos-1x - fetch-tags: true # required for Debian package version - name: Build vyos-1x package run: | cd packages/vyos-1x; dpkg-buildpackage -uc -us -tc -b @@ -51,6 +58,7 @@ jobs: cli-smoketests: needs: build runs-on: ubuntu-24.04 + timeout-minutes: 180 container: image: vyos/vyos-build:current options: --sysctl net.ipv6.conf.lo.disable_ipv6=0 --privileged @@ -65,11 +73,21 @@ jobs: name: vyos-${{ needs.build.outputs.build_version }} path: build - name: VyOS CLI smoketests - run: ls -al; ls -al build; sudo make test + run: sudo make test + - name: Add PR comment + if: always() + uses: mshick/add-pr-comment@v2 + with: + message-success: '👍 VyOS CLI smoketests finished successfully!' + message-failure: '❌ VyOS CLI smoketests failed!' + message-cancelled: '❌ VyOS CLI smoketests cancelled!' + allow-repeats: false + refresh-message-position: true config-load-tests: needs: build runs-on: ubuntu-24.04 + timeout-minutes: 90 container: image: vyos/vyos-build:current options: --sysctl net.ipv6.conf.lo.disable_ipv6=0 --privileged @@ -85,10 +103,20 @@ jobs: path: build - name: VyOS config tests run: sudo make testc + - name: Add PR comment + if: always() + uses: mshick/add-pr-comment@v2 + with: + message-success: '👍 VyOS config tests finished successfully!' + message-failure: '❌ VyOS config tests failed!' + message-cancelled: '❌ VyOS config tests cancelled!' + allow-repeats: false + refresh-message-position: true raid1-install-test: needs: build runs-on: ubuntu-24.04 + timeout-minutes: 20 container: image: vyos/vyos-build:current options: --sysctl net.ipv6.conf.lo.disable_ipv6=0 --privileged @@ -104,3 +132,12 @@ jobs: path: build - name: VyOS RAID1 install test run: sudo make testraid + - name: Add PR comment + if: always() + uses: mshick/add-pr-comment@v2 + with: + message-success: '👍 RAID1 Smoketests finished successfully!' + message-failure: '❌ RAID1 Smoketests failed!' + message-cancelled: '❌ RAID1 action cancelled!' + allow-repeats: false + refresh-message-position: true |