Skip to content

Rename AndcultureCode.CSharp to RSM.HCD.CSharp #67

Rename AndcultureCode.CSharp to RSM.HCD.CSharp

Rename AndcultureCode.CSharp to RSM.HCD.CSharp #67

Workflow file for this run

name: build
on:
push:
branches: ["*"]
pull_request:
branches: [main]
workflow_dispatch:
env:
SLACK_BOT_TOKEN: ${{secrets.SLACK_BOT_TOKEN}}
jobs:
notify_start:
runs-on: ubuntu-latest
steps:
- uses: voxmedia/github-action-slack-notify-build@v1
if: env.SLACK_BOT_TOKEN != ''
with:
channel: company-andculture-code-ci
color: "#3278BD"
status: STARTED
build:
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
runs-on: windows-latest
needs: [notify_start]
if: always()
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.7.2
with:
dotnet-version: 3.1
- name: Output dotnet info
run: dotnet --info
- name: Unit tests
run: |
dotnet restore
dotnet test -p:CollectCoverage=true -p:CoverletOutputFormat=opencover -p:Threshold=0
- name: Upload to codecov
uses: codecov/codecov-action@v1
notify_success:
runs-on: ubuntu-latest
needs: [build]
if: success()
steps:
- uses: voxmedia/github-action-slack-notify-build@v1
if: env.SLACK_BOT_TOKEN != ''
with:
channel: company-andculture-code-ci
color: good
status: SUCCESS
notify_failure:
runs-on: ubuntu-latest
needs: [build]
if: failure()
steps:
- uses: voxmedia/github-action-slack-notify-build@v1
if: env.SLACK_BOT_TOKEN != ''
with:
channel: company-andculture-code-ci
color: danger
status: FAILED