Skip to content

Add tests and noscript specific case logic #59

Add tests and noscript specific case logic

Add tests and noscript specific case logic #59

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, develop ]
pull_request:
branches: [ develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
evaluate_action_skip:
continue-on-error: true
runs-on: windows-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
github_token: ${{ github.token }}
paths_ignore: '["**/*.md"]'
# This workflow contains a single job called "build"
build:
# This should skip the whole job if it is detected as duplicate
needs: evaluate_action_skip
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup .NET Core SDK+Runtime
uses: actions/[email protected]
with:
dotnet-version: 3.1.x
- name: Setup .NET 5.0 SDK+Runtime
uses: actions/[email protected]
with:
dotnet-version: 5.0.404
- name: Setup .NET 6.0 SDK+Runtime
uses: actions/[email protected]
with:
dotnet-version: 6.0.101
- name: Setup MSBuild for .NET Framework
uses: microsoft/setup-msbuild@v1
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Restore NuGet packages
run: dotnet restore
- name: Build solution
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --no-restore --verbosity normal