Skip to content

Dev, closes #92

Dev, closes #92 #78

Workflow file for this run

name: Build and Test
on:
workflow_dispatch:
push:
branches: [ dev ]
paths-ignore:
- "**.md"
- "**.ps1"
- ".editorconfig"
- "TestFiles/*"
- '**/*.gitignore'
- '**/*.gitattributes'
- '**/*.yml'
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened] # Only run when PR is created or updated
jobs:
build:
name: Build and Test
# use ubuntu-latest image to run steps on
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.event.pull_request == null # Prevents duplicate runs
steps:
# uses GitHub's checkout action to checkout code form the release branch
- name: Checkout code
uses: actions/[email protected]
# sets up .NET SDK
- name: Setup .NET
uses: actions/[email protected]
with:
global-json-file: ./global.json
- name: Install WASM workload
run: dotnet workload install wasm-tools
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --configuration Release --no-build