Skip to content

Bump actionlint (#268) #668

Bump actionlint (#268)

Bump actionlint (#268) #668

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main, dotnet-vnext ]
workflow_dispatch:
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
- name: Configure BrowserStack credentials
if: github.event.repository.fork == false && github.actor == 'martincostello'
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_TOKEN: ${{ secrets.BROWSERSTACK_TOKEN }}
shell: pwsh
run: |
"BROWSERSTACK_USERNAME=${env:BROWSERSTACK_USERNAME}" | Out-File -FilePath $env:GITHUB_ENV -Append
"BROWSERSTACK_TOKEN=${env:BROWSERSTACK_TOKEN}" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Build and Test
shell: pwsh
run: ./build.ps1
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1
FORCE_COLOR: 1
NUGET_XMLDOC_MODE: skip
TERM: xterm
- name: Publish screenshots
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: screenshots-${{ matrix.os }}
path: ./artifacts/screenshots/*
if-no-files-found: ignore
- name: Publish traces
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: traces-${{ matrix.os }}
path: ./artifacts/traces/*
if-no-files-found: ignore
- name: Publish videos
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: videos-${{ matrix.os }}
path: ./artifacts/videos/*
if-no-files-found: ignore