Skip to content

Commit

Permalink
Updates workflows again
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Aug 22, 2024
1 parent 85cb223 commit 73db94d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 27 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -26,8 +27,6 @@ jobs:
- 8.x
steps:
- uses: actions/checkout@v4
with:
lfs: true

- name: Setup .NET
uses: actions/setup-dotnet@v4
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
35 changes: 17 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 73db94d

Please sign in to comment.