Skip to content

4. E2E tests VS Code Extension - Prisma CLI version 7.5.0-dev.38 #89

4. E2E tests VS Code Extension - Prisma CLI version 7.5.0-dev.38

4. E2E tests VS Code Extension - Prisma CLI version 7.5.0-dev.38 #89

Workflow file for this run

name: 4. E2E tests VS Code Extension
run-name: 4. E2E tests VS Code Extension - ${{ inputs.trigger_reason }}
on:
workflow_dispatch:
inputs:
release_channel:
description: "Identifies whether we're publishing an insider or stable release of the extension"
required: true
type: choice
options:
- insider
- stable
extension_version:
description: 'VS Code extension version'
required: true
branch:
description: 'Branch to run run this workflow on'
required: true
trigger_reason:
description: 'Information about what caused the publishing process in the first place.'
required: true
env:
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
PRISMA_TELEMETRY_INFORMATION: 'language-tools 4_e2e_tests.yml'
jobs:
tests:
name: E2E tests VS Code Extension
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Headless E2E tests
uses: coactions/setup-xvfb@v1
with:
run: pnpm test:e2e
trigger:
name: Trigger next workflow
needs: [tests]
runs-on: ubuntu-latest
timeout-minutes: 7
if: always()
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Print inputs
run: |
echo ${{github.event.inputs.release_channel}}
echo ${{github.event.inputs.extension_version}}
echo ${{github.event.inputs.branch}}
echo ${{github.event.inputs.trigger_reason}}
- name: Trigger next workflow to build extension
if: ${{ needs.tests.result == 'success' }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: 5. Build extension
token: ${{ secrets.PRISMA_BOT_TOKEN }}
inputs: '{ "release_channel": "${{ github.event.inputs.release_channel }}", "extension_version": "${{ github.event.inputs.extension_version }}", "branch": "${{github.event.inputs.branch}}", "trigger_reason": "${{github.event.inputs.trigger_reason}}" }'