From 0ce901db6e75b6f9a7e51192ddaa0119fd6bb7d7 Mon Sep 17 00:00:00 2001 From: Shane Krueger Date: Mon, 23 Sep 2024 12:22:09 -0400 Subject: [PATCH] Fix running tests from other repos; bump workflow deps (#74) * Fix running tests from other repos * Bump github action dependencies * Update test.yml --- .github/workflows/build.yml | 3 ++- .github/workflows/format.yml | 1 + .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 4 +++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d1ec78..7888b74 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,7 @@ jobs: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Add graphql-dotnet nuget source run: dotnet nuget add source https://nuget.pkg.github.com/graphql-dotnet/index.json -n graphqldotnet -u ${{ secrets.NUGET_PUBLIC_USER }} -p ${{ secrets.NUGET_PUBLIC_TOKEN }} --store-password-in-clear-text + continue-on-error: true - name: Install dependencies run: dotnet restore - name: Build solution [Release] @@ -29,7 +30,7 @@ jobs: - name: Pack solution [Release] run: dotnet pack --no-restore --no-build -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER -o out - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Nuget packages path: | diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 6a41db0..80c09f6 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -25,6 +25,7 @@ jobs: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Add graphql-dotnet nuget source run: dotnet nuget add source https://nuget.pkg.github.com/graphql-dotnet/index.json -n graphqldotnet -u ${{ secrets.NUGET_PUBLIC_USER }} -p ${{ secrets.NUGET_PUBLIC_TOKEN }} --store-password-in-clear-text + continue-on-error: true - name: Install dependencies run: dotnet restore - name: Check formatting diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7b2d646..eb3545c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,7 +37,7 @@ jobs: - name: Pack solution [Release] run: dotnet pack --no-restore --no-build -c Release -p:Version=$version -o out - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Nuget packages path: | @@ -45,7 +45,7 @@ jobs: - name: Publish Nuget packages to Nuget registry run: dotnet nuget push "out/*" -k ${{secrets.NUGET_AUTH_TOKEN}} - name: Upload nuget packages as release artifacts - uses: actions/github-script@v2 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 29510c9..f094b51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,7 @@ jobs: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Add graphql-dotnet nuget source run: dotnet nuget add source https://nuget.pkg.github.com/graphql-dotnet/index.json -n graphqldotnet -u ${{ secrets.NUGET_PUBLIC_USER }} -p ${{ secrets.NUGET_PUBLIC_TOKEN }} --store-password-in-clear-text + continue-on-error: true - name: Install dependencies run: dotnet restore - name: Build solution [Release] @@ -61,7 +62,8 @@ jobs: reporttypes: 'Html' tag: 'test_${{ github.run_number }}' - name: Upload artifacts - uses: actions/upload-artifact@v2 + if: ${{ matrix.os == 'ubuntu-latest' }} + uses: actions/upload-artifact@v4 with: name: Code coverage artifacts path: |