Add GitHub action testing
This commit is contained in:
parent
45df64a115
commit
786ab1828a
41
.github/workflows/pull-request.yaml
vendored
Normal file
41
.github/workflows/pull-request.yaml
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
name: Demystifier PR Build
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "Build for PR"
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
DOTNET_NOLOGO: true
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-18.04, macOS-latest]
|
||||
config: [Debug, Release]
|
||||
steps:
|
||||
- name: Clone source
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install .NET Core SDK 2.1
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '2.1.x'
|
||||
|
||||
- name: Install .NET Core SDK 3.1
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '3.1.x'
|
||||
|
||||
- name: Install .NET SDK 5.0
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '5.0.x'
|
||||
|
||||
- name: Get .NET information
|
||||
run: dotnet --info
|
||||
|
||||
- name: "Test"
|
||||
run: dotnet test -c ${{ matrix.config }}
|
||||
|
||||
32
appveyor.yml
32
appveyor.yml
@ -1,32 +0,0 @@
|
||||
image: Visual Studio 2017
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
skip_branch_with_pr: true
|
||||
|
||||
skip_tags: true
|
||||
|
||||
skip_commits:
|
||||
files:
|
||||
- BUILDING.md
|
||||
- CONTRIBUTING.md
|
||||
- ISSUE_TEMPLATE.md
|
||||
- LICENCE
|
||||
- README.md
|
||||
|
||||
nuget:
|
||||
disable_publish_on_pr: true
|
||||
|
||||
build_script:
|
||||
- ps: .\build.ps1 -target appveyor
|
||||
|
||||
test: off
|
||||
|
||||
deploy: off
|
||||
|
||||
artifacts:
|
||||
- path: artifacts/build
|
||||
- path: artifacts/packages
|
||||
- path: artifacts/test
|
||||
Loading…
Reference in New Issue
Block a user