Skip to content

Switch to GitHub Actions for all CI #12

Switch to GitHub Actions for all CI

Switch to GitHub Actions for all CI #12

Workflow file for this run

name: CI Tests
on:
push:
branches: [ main ]
tags: [ v* ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths-ignore: [ '**/*.md' ]
merge_group:
types: [ checks_requested ]
jobs:
ci_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
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dotnet
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: src/PowerShellEditorServices/packages.lock.json
dotnet-version: |
6.0.x
7.0.x
- name: Install PSResources
shell: pwsh
run: tools/installPSResources.ps1
- name: Build
shell: pwsh
run: Invoke-Build Build
- name: Run tests
shell: pwsh
run: Invoke-Build Test
- name: Upload test results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: ${{ matrix.os }}-test-results
path: '**/*.trx'