Random number generation seeding structure refactor #1155
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: CI | |
on: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
env: | |
Project_Name: HEC.FDA.View/HEC.FDA.View.csproj | |
jobs: | |
CI: | |
runs-on: windows-latest | |
env: | |
Solution_Name: Fda.sln | |
dotnet-version: '8.0.x' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3.2.0 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Add Github and Nexus Source | |
run: | | |
dotnet nuget add source --username HydrologicEngineeringCenter --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/HydrologicEngineeringCenter/index.json" | |
dotnet nuget add source --name fda-nuget "https://www.hec.usace.army.mil/nexus/repository/fda-nuget/" | |
dotnet nuget add source --name dss "https://www.hec.usace.army.mil/nexus/repository/dss/" | |
- name: Create version number | |
shell: pwsh | |
run: | | |
$VERSION = "0.0.0.${{ github. run_number }}-Beta" | |
echo "VERSION=$VERSION" >> $env:GITHUB_ENV | |
- name: Test Solution | |
run: dotnet test --nologo --no-build --filter RunsOn=Remote -c Release | |
- name: Publish | |
shell: pwsh | |
run: | | |
$PUBLISH_OUT = "${pwd}/TO-PACKAGE/" | |
echo "PUBLISH_OUT=$PUBLISH_OUT" >> $env:GITHUB_ENV | |
dotnet publish -c Release -v quiet /p:Version=${{ env.VERSION }} -o $PUBLISH_OUT ${{ env.PROJECT_NAME }} | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3.1.2 | |
with: | |
name: HEC-FDA-${{ env.VERSION }} | |
path: ${{ env.PUBLISH_OUT }} |