Skip to content

GitHub actions workflow tests #1

GitHub actions workflow tests

GitHub actions workflow tests #1

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: default
on:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
cache: true
- name: Restore dependencies
run: dotnet restore
- name: Install Eticat
run: dotnet tool install -g EtiCat
- name: CI
run: EtiCat ci --prerelease ${{ steps.extract_branch.outputs.branch }}
- name: Upload Packages
uses: actions/upload-artifact@v4
with:
name: NMF Nuget Packages
path: Build/*.nupkg