FastGithub/.github/workflows/main.yml
2021-07-25 14:06:33 +08:00

40 lines
802 B
YAML

name: Amazing Favorites build
on:
push:
branches:
- master
- develop
- feature/ci
- feature/ut
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
include-prerelease: true
- name: Install dependencies
run: |
cd .
dotnet restore
- name: build and test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
run: |
dotnet build . --configuration Release