From 80198a0692bdf90952dd08f1c35a36e1aba72e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B3=D0=BE=D1=80?= <148970641+Egor00f@users.noreply.github.com> Date: Sat, 16 Nov 2024 20:23:38 +0500 Subject: [PATCH] Update test.yml Separation of package build tests, packages and installation script --- .github/workflows/test.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 57cde38..3e42031 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,6 @@ jobs: #Test linux install script linux-install: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 @@ -53,6 +52,7 @@ jobs: #Test Windows Installer build-Installer: runs-on: windows-latest + needs: PowerShell-install steps: - uses: actions/checkout@v4 @@ -68,9 +68,10 @@ jobs: # Upload entire repository path: './build/installer.exe' - # Test Package - deb-package: + # Test deb package build + deb-package-build: runs-on: ubuntu-latest + needs: linux-install steps: - uses: actions/checkout@v4 @@ -85,7 +86,12 @@ jobs: name: deb-package # Upload entire repository path: './build/package.deb' - + + # Test deb package install/remove + deb-package-test: + runs-on: ubuntu-latest + needs: deb-package-build + steps: - name: Install package run: echo '/kolibrios-toolchain' | sudo apt install ${{ github.workspace }}/build/package.deb -y @@ -104,9 +110,10 @@ jobs: - name: Remove package run: sudo apt remove kos32-gcc - #Test chocolatey package - chocolatey-package: + #Test chocolatey package build + chocolatey-package-build: runs-on: windows-latest + needs: PowerShell-install steps: - uses: actions/checkout@v4 @@ -122,8 +129,14 @@ jobs: # Upload entire repository path: './build/choco-package.nupkg' + # Test chocolatey package install/remove + chocolatey-package-test: + runs-on: ubuntu-latest + needs: chocolatey-package-build + steps: - name: Install package run: choco install ${{ github.workspace }}\build\choco-package.nupkg - name: Remove package run: choco uninstall kos32-gcc +