From 1fb804064bef9ee94a5cac29205cc5cfab000096 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 17 Nov 2025 08:37:39 -0500 Subject: [PATCH] Format GHA definitions --- .github/workflows/build_and_test.yml | 80 ++++++++++++++-------------- .github/workflows/check_pr.yml | 34 ++++++------ 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 464a890..3d72c8c 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1,48 +1,48 @@ name: Build and Test on: - push: - branches: [ "main" ] + push: + branches: ["main"] jobs: - build: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - - name: Setup .NET - uses: actions/setup-dotnet@v5 - with: - dotnet-version: | - 8.0.x - 9.0.x - 10.0.x - - - name: Run tests - run: dotnet test - - - name: Run publish script - run: ./publish-nix.sh -d + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 - - name: Update rolling tag - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git tag -f rolling - git push origin :refs/tags/rolling || true - git push origin rolling --force + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x - - name: Upload to rolling - uses: ncipollo/release-action@v1.20.0 - with: - allowUpdates: True - artifacts: "*.nupkg,*.snupkg,*.zip" - body: 'Last built commit: ${{ github.sha }}' - name: 'Rolling Release' - prerelease: True - replacesArtifacts: True - tag: "rolling" - updateOnlyUnreleased: True + - name: Run tests + run: dotnet test + + - name: Run publish script + run: ./publish-nix.sh -d + + - name: Update rolling tag + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git tag -f rolling + git push origin :refs/tags/rolling || true + git push origin rolling --force + + - name: Upload to rolling + uses: ncipollo/release-action@v1.20.0 + with: + allowUpdates: True + artifacts: "*.nupkg,*.snupkg,*.zip" + body: "Last built commit: ${{ github.sha }}" + name: "Rolling Release" + prerelease: True + replacesArtifacts: True + tag: "rolling" + updateOnlyUnreleased: True diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml index cc84d18..5e7ba34 100644 --- a/.github/workflows/check_pr.yml +++ b/.github/workflows/check_pr.yml @@ -3,21 +3,21 @@ name: Build PR on: [pull_request] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - - name: Setup .NET - uses: actions/setup-dotnet@v5 - with: - dotnet-version: | - 8.0.x - 9.0.x - 10.0.x - - - name: Build - run: dotnet build + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 - - name: Run tests - run: dotnet test + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x + + - name: Build + run: dotnet build + + - name: Run tests + run: dotnet test