P2G - V4 #180
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: PR Check | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ master, v4-wip ] | |
jobs: | |
build-and-test: | |
strategy: | |
matrix: | |
dotnet: ['7.0'] | |
os: [windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet }} | |
- name: Clean | |
run: dotnet clean --configuration Debug && dotnet nuget locals all --clear | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore --configuration Debug | |
- name: Test | |
run: dotnet test | |
publish-windows-console-exe-dist: | |
name: Publish Windows Console Exe Distribution | |
runs-on: 'windows-latest' | |
needs: build-and-test | |
strategy: | |
matrix: | |
dotnet: [ '7.0' ] | |
os: [ 'win10-x64' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Publish Windows Console Exe Distribution | |
uses: ./.github/actions/publish-console-exe-dist | |
with: | |
dotnet-version: ${{ matrix.dotnet }} | |
os: ${{ matrix.os }} | |
publish-ui-dist: | |
name: Publish UI Distribution | |
runs-on: 'windows-latest' | |
needs: build-and-test | |
strategy: | |
matrix: | |
dotnet: [ '7.0.401' ] | |
framework: ['net7.0-windows10.0.22621.0'] | |
os: [ 'win10-x64' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Publish UI Distribution | |
uses: ./.github/actions/publish-ui-dist | |
with: | |
dotnet-version: ${{ matrix.dotnet }} | |
os: ${{ matrix.os }} | |
framework: ${{ matrix.framework }} | |
publish-docker-images: | |
name: Publish Docker Images | |
runs-on: ubuntu-latest | |
needs: build-and-test | |
strategy: | |
matrix: | |
dockerfile: ['Dockerfile.console', 'Dockerfile.api', 'Dockerfile.webui'] | |
include: | |
- dockerfile: 'Dockerfile.console' | |
tag: 'pr-validator-console-A' | |
- dockerfile: 'Dockerfile.api' | |
tag: 'pr-validator-api-A' | |
- dockerfile: 'Dockerfile.webui' | |
tag: 'pr-validator-webui-A' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Publish Docker Images | |
uses: ./.github/actions/publish-docker-images | |
with: | |
dockerfile: ${{ matrix.dockerfile }} | |
tag: ${{ matrix.tag }} | |
secret_docker_username: ${{ secrets.DOCKER_USERNAME }} | |
secret_docker_password: ${{ secrets.DOCKER_PASSWORD }} | |
secret_github_package: ${{ secrets.GH_PACKAGE_SECRET}} |