Skip to content

Commit

Permalink
test: add tests for MSI
Browse files Browse the repository at this point in the history
closes #438
  • Loading branch information
derevnjuk committed Aug 31, 2023
1 parent 79ded76 commit b16578e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
type: boolean
description: "Test Executables"
default: true
test-msi:
type: boolean
description: "Test MSI"
default: true
test-npm:
type: boolean
description: "Test NPM"
Expand Down Expand Up @@ -113,6 +117,40 @@ jobs:
E2E_REPEATER_TARGET_URL: ${{ format('http://localhost:{0}', steps.target.outputs.port) }}
E2E_REPEATER_TARGET_CMD: ${{ steps.target.outputs.cmd }}
E2E_TEST_TIMEOUT: ${{ inputs.test_timeout }}
msi:
if: ${{ inputs.test-msi }}
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Install Dependencies
uses: ./.github/workflows/composite/npm
with:
# https://github.com/actions/setup-node/issues/286#issuecomment-878865957
cache: ''

- name: Download and Install Bright CLI using MSI
shell: powershell
run: |
Invoke-WebRequest -Uri https://github.com/NeuraLegion/bright-cli/releases/download/${{ inputs.version }}/bright-cli.msi -OutFile bright-cli.msi
Start-Process msiexec.exe -Wait -ArgumentList '/I bright-cli.msi /qn
- name: Download Target
id: target
uses: ./.github/workflows/composite/todoapp

- name: Run Tests
run: npm run test:e2e
env:
E2E_CLI_VERSION: ${{ inputs.version }}
E2E_CLI_CMD: ${{ 'bright-cli' }}
E2E_RUN_ID: ${{ format('{0}-{1}-{2}-{3}', github.run_number, github.run_attempt, github.job, strategy.job-index) }}
E2E_CLUSTER: ${{ secrets[format('E2E_{0}_HOST', inputs.environment )] }}
E2E_CLUSTER_API_KEY: ${{ secrets[format('E2E_{0}_API_KEY', inputs.environment )] }}
E2E_REPEATER_TARGET_URL: ${{ format('http://localhost:{0}', steps.target.outputs.port) }}
E2E_REPEATER_TARGET_CMD: ${{ steps.target.outputs.cmd }}
E2E_TEST_TIMEOUT: ${{ inputs.test_timeout }}
docker:
if: ${{ inputs.test-docker }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit b16578e

Please sign in to comment.