Skip to content

Switch to GitHub Actions for all CI #1

Switch to GitHub Actions for all CI

Switch to GitHub Actions for all CI #1

Workflow file for this run

name: CI Tests
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths-ignore: [ '**/*.md' ]
merge_group:
types: [ checks_requested ]
jobs:
os_matrix:
strategy:
matrix:
os: [ windows-latest, macos-latest, ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
defaults:
run:
shell: pwsh
working-directory: vscode-powershell
steps:
- name: Checkout PowerShellEditorServices
uses: actions/checkout@v4
with:
repository: PowerShell/PowerShellEditorServices
path: PowerShellEditorServices
ref: andyleejordan/github-ci
- name: Checkout vscode-powershell
uses: actions/checkout@v4
with:
path: vscode-powershell
- name: Install dotnet
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: PowerShellEditorServices/src/PowerShellEditorServices/packages.lock.json
dotnet-version: |
6.0.x
7.0.x
- name: Install PSResources
run: ../PowerShellEditorServices/tools/installPSResources.ps1
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: vscode-powershell/package-lock.json
- name: Build
run: Invoke-Build Package
- name: Upload build artifacts
uses: actions/upload-artifact@v3
if: ${{ matrix.os == "windows-latest" }}

Check failure on line 57 in .github/workflows/ci-test.yml

View workflow run for this annotation

GitHub Actions / CI Tests

Invalid workflow file

The workflow is not valid. .github/workflows/ci-test.yml (Line: 57, Col: 13): Unexpected symbol: '"windows-latest"'. Located at position 14 within expression: matrix.os == "windows-latest"
with:
name: vscode-powershell
path: powershell-*.vsix
- name: Start X virtual framebuffer
if: matrix.os == ubuntu-latest'
shell: bash
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Run tests
run: Invoke-Build Test
- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ matrix.os }}-test-results
path: '**/test-results.xml'