diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8a862e4..d00bdd8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,6 @@ jobs: access_token: ${{ github.token }} build-npm-linux-amd64: - name: build-npm runs-on: - self-hosted - Linux @@ -33,10 +32,27 @@ jobs: uses: actions/upload-artifact@v2 with: name: node-modules-linux-amd64 - #path: node_modules/ path: node_modules-linux-amd64.tar.gz retention-days: 7 + build-npm-windows-amd64: + runs-on: + - self-hosted + - Windows + - X64 + steps: + - uses: actions/checkout@v2 + - shell: pwsh + name: npm install + run: | + ci\bin\build.ps1 + - name: upload build + uses: actions/upload-artifact@v2 + with: + name: node-modules-windows-amd64 + path: node_modules-windows-amd64.tar.gz + retention-days: 7 + csi-sanity-synology-dsm6: needs: - build-npm-linux-amd64 @@ -283,7 +299,35 @@ jobs: TEMPLATE_CONFIG_FILE: "./ci/configs/${{ matrix.config }}" CSI_SANITY_SKIP: "should fail when requesting to create a snapshot with already existing name and different source volume ID|should fail when requesting to create a volume with already existing name and different capacity" - build-docker: + csi-sanity-windows-node: + needs: + - build-npm-windows-amd64 + strategy: + fail-fast: false + matrix: + config: + - windows\iscsi.yaml + - windows\smb.yaml + runs-on: + - self-hosted + - Windows + - X64 + steps: + - uses: actions/checkout@v2 + - uses: actions/download-artifact@v2 + with: + name: node-modules-windows-amd64 + - name: csi-sanity + run: | + # run tests + ci\bin\run.ps1 + env: + TEMPLATE_CONFIG_FILE: ".\\ci\\configs\\${{ matrix.config }}" + SERVER_HOST: ${{ secrets.SANITY_ZFS_GENERIC_HOST }} + SERVER_USERNAME: ${{ secrets.SANITY_ZFS_GENERIC_USERNAME }} + SERVER_PASSWORD: ${{ secrets.SANITY_ZFS_GENERIC_PASSWORD }} + + build-docker-linux: needs: - csi-sanity-synology-dsm6 - csi-sanity-synology-dsm7 @@ -293,6 +337,7 @@ jobs: - csi-sanity-zfs-generic - csi-sanity-zfs-local - csi-sanity-local-hostpath + - csi-sanity-windows-node runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/ci/bin/build.ps1 b/ci/bin/build.ps1 index e883378..7f3f8ad 100644 --- a/ci/bin/build.ps1 +++ b/ci/bin/build.ps1 @@ -5,4 +5,4 @@ npm --version npm i # tar node_modules to keep the number of files low to upload -tar -zcf node_modules.tar.gz node_modules +tar -zcf node_modules-windows-amd64.tar.gz node_modules diff --git a/ci/bin/run.ps1 b/ci/bin/run.ps1 index 24a244c..98beeaa 100644 --- a/ci/bin/run.ps1 +++ b/ci/bin/run.ps1 @@ -19,9 +19,9 @@ function Job-Cleanup() { Job-Cleanup # install from artifacts -if (Test-Path "node_modules.tar.gz") { - Write-Output "extracting node_modules.tar.gz" - tar -zxf node_modules.tar.gz +if (Test-Path "node_modules-windows-amd64.tar.gz") { + Write-Output "extracting node_modules-windows-amd64.tar.gz" + tar -zxf node_modules-windows-amd64.tar.gz } # setup env