Skip to content

CI Build

CI Build #192

Workflow file for this run

name: CI Build
on:
push:
branches:
- master
- develop
schedule:
- cron: "0 8 * * 1" # At 08:00 on Monday
jobs:
unit-test:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
steps:
- name: Setup .Net
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
- uses: actions/checkout@v3
- name: Restore
run: dotnet restore --nologo
- name: Build
run: dotnet build --no-restore --nologo --configuration Release
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PAYPAL_ClientId: ${{ secrets.PAYPAL_CLIENT_ID }}
PAYPAL_ClientSecret: ${{ secrets.PAYPAL_CLIENT_SECRET }}
run: dotnet test --nologo --no-build --configuration Release
code-style:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
steps:
- uses: actions/checkout@v3
- name: Setup .Net 7.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: .Net Format
run: dotnet format --no-restore --verify-no-changes -v diag