Merge of #933. Thanks @magarma #741
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ dev ] | |
paths: | |
- 'src/lib/PnP.Framework/**' | |
- 'src/lib/PnP.Framework.Test/**' | |
pull_request: | |
branches: [ dev ] | |
paths: | |
- 'src/lib/PnP.Framework/**' | |
- 'src/lib/PnP.Framework.Test/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for actions to finish | |
uses: softprops/turnstyle@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout PnP Framework dev branch | |
uses: actions/checkout@v2 | |
with: | |
ref: dev | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.0.x' | |
include-prerelease: false | |
- name: Install dependencies | |
run: dotnet restore | |
working-directory: src/lib | |
- name: Build | |
run: dotnet build --configuration debug --no-restore --verbosity normal | |
working-directory: src/lib | |
#- name: Test | |
# run: dotnet test --no-restore --verbosity normal | |
# working-directory: src/lib |