Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sator-imaging committed Sep 1, 2024
2 parents 86dde90 + 80d3530 commit 81e54e3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,28 @@ on:

env:
unity_folder: 'SatorImaging.StaticMemberAnalyzer.Unity' # no spaces!
test_csproj: 'StaticMemberAnalyzer.Test/SatorImaging.StaticMemberAnalyzer.Test.csproj'
GH_TOKEN: ${{ github.token }} # for github CLI

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '3.1.x', '8.0.x' ]

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4
- name: Setup .NET
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: ${{ matrix.dotnet-version }}
##cache: true
- name: Restore dependencies
run: |
cd src
Expand All @@ -75,10 +80,12 @@ jobs:
# required to enable deterministic build --> -p:ContinuousIntegrationBuild=true
# it seems that hash is calculated based on the whole git directory contents
# ex: including github actions yaml files
dotnet build -c Release --no-restore -p:ContinuousIntegrationBuild=true
dotnet build -c Release --no-restore -p:ContinuousIntegrationBuild=true -p:DontReferenceItself=true
- name: Test
run: dotnet test --no-build --verbosity normal -p:DontReferenceItself=true
run: |
cd src
dotnet test ${{ env.test_csproj }} -c Release --no-build --verbosity normal -p:DontReferenceItself=true
- name: Upload
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 81e54e3

Please sign in to comment.