Bump actions/checkout from 2 to 3.1.0 #64
Workflow file for this run
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: Main | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "*.md" | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
env: | |
RESOURCE_GROUP_NAME: ondfisk | |
WEBAPP_NAME: c5 | |
BUILD_CONFIGURATION: Release | |
jobs: | |
build: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore | |
- name: Test | |
run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: lib | |
path: bin/**/*.nupkg | |
documentation: | |
name: Generate Documentation | |
runs-on: ubuntu-latest | |
container: | |
image: corentinaltepe/doxygen | |
steps: | |
- uses: actions/[email protected] | |
- name: Install GraphViz | |
run: apk update && apk add graphviz font-bitstream-type1 ghostscript-fonts | |
- name: Generate Documentation | |
run: doxygen Doxyfile | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: docs | |
path: docs/ | |
# deploy: | |
# name: Deploy | |
# runs-on: ubuntu-latest | |
# if: ${{ github.ref == 'refs/heads/master' }} | |
# needs: | |
# - build | |
# environment: Production |