Revert "v2.6.6 release (#121)" #155
Workflow file for this run
This file contains hidden or 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: Build and Test | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| paths-ignore: | |
| # Any update here needs to be done for | |
| # - `pull_request` see below | |
| - '*.md' | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - '.github/pull_request_template.md' | |
| - '.github/stale.yml' | |
| - 'LICENSE' | |
| pull_request: | |
| branches: [ main, develop ] | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| # Any update here needs to be done for | |
| # - `push`see before | |
| - '*.md' | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - '.github/pull_request_template.md' | |
| - '.github/stale.yml' | |
| - 'LICENSE' | |
| env: | |
| buildConfiguration: 'Release' | |
| buildRuntime: 'win-x64' | |
| runEnvironment: 'Release' | |
| ASPNETCORE_ENVIRONMENT: 'Release' | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| ## NOTE: This workflow needs to also checkout the Mock Register for testing. | |
| ## This workflow will checkout the ConsumerDataRight/mock-register project | |
| steps: | |
| - name: Checkout Register | |
| uses: actions/checkout@v4 | |
| with: | |
| path: ./mock-register | |
| # Build mock-register image | |
| - name: Build the mock-register image | |
| run: | | |
| docker build ./mock-register/Source --file ./mock-register/Source/Dockerfile --tag mock-register:latest | |
| # Build mock-register-unit-tests image | |
| - name: Build the mock-register-unit-tests image | |
| run: | | |
| docker build ./mock-register/Source --file ./mock-register/Source/Dockerfile --target unit-tests --tag mock-register-unit-tests:latest | |
| # Build mock-register-integration-tests image | |
| - name: Build the mock-register-integration-tests image | |
| run: | | |
| docker build ./mock-register/Source --file ./mock-register/Source/Dockerfile --target integration-tests --tag mock-register-integration-tests:latest | |
| # List docker images | |
| - name: List Docker images | |
| run: | | |
| docker images | |
| # Run unit tests | |
| - name: Run unit tests | |
| run: | | |
| docker compose -f ./mock-register/Source/docker-compose.UnitTests.yml up --abort-on-container-exit --exit-code-from mock-register-unit-tests | |
| # Remove unit tests | |
| - name: Remove unit tests | |
| run: | | |
| docker compose -f ./mock-register/Source/docker-compose.UnitTests.yml down | |
| # Run integration tests | |
| - name: Run integration tests | |
| run: | | |
| docker compose -f ./mock-register/Source/docker-compose.IntegrationTests.yml up --abort-on-container-exit --exit-code-from mock-register-integration-tests | |
| # Remove integration tests | |
| - name: Remove integration tests | |
| run: | | |
| docker compose -f ./mock-register/Source/docker-compose.IntegrationTests.yml down | |
| # Archive unit test results | |
| - name: Archive unit test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: unit-test-results | |
| path: ${{ github.workspace }}/mock-register/Source/_temp/mock-register-unit-tests/testresults | |
| # Archive integration test results | |
| - name: Archive integration test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: integration-test-results | |
| path: ${{ github.workspace }}/mock-register/Source/_temp/mock-register-integration-tests/testresults | |
| # Archive mock register logs | |
| - name: Archive mock register logs | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: integration-test-artifacts | |
| path: ${{ github.workspace }}/mock-register/Source/_temp/mock-register/tmp |