diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b3f7713..93793b5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v1 with: submodules: false - - name: Install dependencies + - name: Install prettier&commitlint dependencies run: | apt update apt install --yes sudo @@ -22,6 +22,12 @@ jobs: - name: ownership workaround run: git config --global --add safe.directory '*' + - name: Check XAML style with prettier + run: | + sudo npm install --save-dev prettier @prettier/plugin-xml + ./node_modules/.bin/prettier --xml-whitespace-sensitivity ignore --tab-width 4 --prose-wrap preserve --write '**/*.xaml' + git diff --exit-code + - name: Install .NET6 run: | apt update && apt install --yes sudo @@ -36,11 +42,6 @@ jobs: run: | dotnet format whitespace ./src --folder git diff --exit-code - - name: Check XAML style with prettier - run: | - sudo npm install --save-dev prettier @prettier/plugin-xml - ./node_modules/.bin/prettier --xml-whitespace-sensitivity ignore --tab-width 4 --prose-wrap preserve --write '**/*.xaml' - git diff --exit-code - name: Check if gitPush1by1 was used if: github.event_name == 'pull_request' run: |