From 73db94d0bd28e7ce391ba4380e954bf994ae3283 Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Thu, 22 Aug 2024 18:25:31 -0500 Subject: [PATCH] Updates workflows again --- .github/workflows/build.yml | 9 ++++----- .github/workflows/release.yml | 6 ++---- .github/workflows/test.yml | 35 +++++++++++++++++------------------ 3 files changed, 23 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ea9d9f9..7fb2ec8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,15 +2,16 @@ name: Build project on: push: - branches: - - master + branches: [master, dev] + pull_request: + branches: [master, dev] workflow_dispatch: jobs: build: name: Build ${{ matrix.projectPath }} for ${{ matrix.targetPlatform }} runs-on: ubuntu-latest - needs: prepareBuild + strategy: fail-fast: false matrix: @@ -26,8 +27,6 @@ jobs: - 8.x steps: - uses: actions/checkout@v4 - with: - lfs: true - name: Setup .NET uses: actions/setup-dotnet@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40dd135..73dd483 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,12 +42,10 @@ jobs: dotnet: - 8.x steps: - - uses: actions/checkout@v3 - with: - lfs: true + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: | ${{ matrix.dotnet }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 88bcb08..e428bc5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,32 +2,31 @@ name: Test project on: push: - branches: [ master, dev ] + branches: [master, dev] pull_request: - branches: [ master, dev ] + branches: [master, dev] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: | - 6.0.x - 3.1.x - cache: true - cache-dependency-path: Blocktest/packages.lock.json + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 8.0.x + 3.1.x + cache: true + cache-dependency-path: Blocktest/packages.lock.json - - name: Restore dependencies - run: dotnet restore --locked-mode + - name: Restore dependencies + run: dotnet restore --locked-mode - - name: Build - run: dotnet build --no-restore + - name: Build + run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + - name: Test + run: dotnet test --no-build --verbosity normal