name: .NET Core

on: [push]

jobs:
  build:

    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 2.2.108
    - name: Build with dotnet
      run: dotnet build build.proj --configuration Release
    - name: Test with dotnet
      run: dotnet test build.proj -v n
    - name: Use Node.js
      uses: actions/setup-node@v1
      with:
        node-version: '12.x'
    - run: npm install -g fable-splitter fable-compiler
    - run: cd src/FSharpPlus; npx fable-splitter --allFiles
    - run: cd tests/FSharpPlusFable.Tests; npm install; npm run buildFSharpPlus; npm run test

name: .NET Core

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 2.2.108
    - name: Build with dotnet
      run: dotnet build build.proj --configuration Release
    - name: Test with dotnet
      run: dotnet test build.proj -v n
    - name: Use Node.js
      uses: actions/setup-node@v1
      with:
        node-version: '12.x'
    - run: npm install -g fable-splitter fable-compiler
    - run: cd src/FSharpPlus; npx fable-splitter --allFiles
    - run: cd tests/FSharpPlusFable.Tests; npm install; npm run buildFSharpPlus; npm run test

Configure github action to run on master
Configure github action to run on master

Also on pull requests to master