Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XamlStyler as option for ci pipeline #460

Open
nickrandolph opened this issue Nov 21, 2023 · 0 comments
Open

Add XamlStyler as option for ci pipeline #460

nickrandolph opened this issue Nov 21, 2023 · 0 comments
Labels
kind/enhancement New feature or request. triage/untriaged Indicates an issue requires triaging or verification.

Comments

@nickrandolph
Copy link
Contributor

What would you like to be added:

Run XamlStyler as a job in the ci pipeline that gets created from template (xaml markup only)

name: Xaml Styler

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  xaml-styler:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Setup .NET
      uses: actions/setup-dotnet@v3
      with:
        dotnet-version: 8.0.x
    - name: Install XAML Styler 
      run: dotnet tool update --global XamlStyler.Console
    - name: Verify XAML Styling
      run: xstyler -r -l Verbose -c src/Settings.XamlStyler -d "." --passive

Why is this needed:

Helps ensure a standard xaml layout

@nickrandolph nickrandolph added kind/enhancement New feature or request. triage/untriaged Indicates an issue requires triaging or verification. labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request. triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

1 participant