Skip to content

Order of ProjectReferences #57

Order of ProjectReferences

Order of ProjectReferences #57

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: 🛠️ Build and Test Release 🛠️
runs-on: ubuntu-latest
steps:
- name: Clear cache
uses: actions/github-script@v6
with:
script: |
console.log("About to clear")
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
for (const cache of caches.data.actions_caches) {
console.log(cache)
github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
}
console.log("Clear completed")
- name: 🛠️ Check-out code
uses: actions/checkout@v3
- name: 🛠️ Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.x
- name: 🛠️ Enable Problem Matchers
run: echo "::add-matcher::.github/matchers/dotnet.json"
- name: 🛠️ Restore & Load Dependencies
# Eventually add in cache for packages
run: dotnet restore
- name: 🛠️ Build Release
# Test pipeline as production Release
run: dotnet build --configuration Release --no-restore
- name: 🛠️ Test Release
run: dotnet test --no-build --verbosity normal