Skip to content

initial commit

initial commit #6

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build and Test
on:
# TODO: Uncomment this line
# push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
strategy:
matrix:
os: [windows-latest]
runs-on: ${{matrix.os}}
env:
CONFIGURATION: Release
permissions:
actions: write
artifact-metadata: write
checks: write
contents: write
pull-requests: write
outputs:
assemblySemVer: ${{ steps.version_step.outputs.assemblySemVer }}
GitVersion_FullSemVer: ${{ steps.version_step.outputs.GitVersion_FullSemVer }}
semVer: ${{ steps.version_step.outputs.semVer }}
steps:
- uses: actions/checkout@v5
with:
lfs: true
fetch-depth: 0
submodules: recursive
- id: setup
uses: ./actions/steps/setup
- id: build
uses: ./actions/steps/dotnet/build
- id: tag-commit
uses: ./actions/steps/tag-commit
unit-test:
needs: build
runs-on: windows-latest
env:
CONFIGURATION: Release
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v5
with:
lfs: true
fetch-depth: 0
- uses: ./actions/steps/setup
- uses: ./actions/steps/dotnet/test
with:
assembly-semver: ${{ needs.build.outputs.assemblySemVer }}
gitversion-full-semver: ${{ needs.build.outputs.GitVersion_FullSemVer }}
# benchmark:
# needs: build
# runs-on: windows-latest
# env:
# CONFIGURATION: Release
# permissions:
# contents: read
# issues: write
# steps:
# - uses: actions/checkout@v5
# with:
# lfs: true
# fetch-depth: 0
# - uses: ./actions/steps/benchmark
lint:
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
with:
lfs: true
fetch-depth: 0
- uses: ./actions/steps/dotnet/format
- uses: ./actions/steps/rumdl
codeql:
env:
CONFIGURATION: Release
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v5
with:
lfs: true
fetch-depth: 0
- uses: ./actions/steps/codeql
pr-size:
if: github.event_name == 'pull_request'
runs-on: windows-latest
permissions:
contents: read
issues: read
steps:
- uses: actions/checkout@v5
with:
lfs: true
fetch-depth: 0
- uses: ./actions/steps/pr-size