Skip to content

Commit

Permalink
Update CD workflow: comment out automated UI tests section
Browse files Browse the repository at this point in the history
  • Loading branch information
tsviz committed Nov 19, 2024
1 parent 9456ff6 commit ec14283
Showing 1 changed file with 32 additions and 33 deletions.
65 changes: 32 additions & 33 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:

runs-on: ubuntu-latest
environment: STAGE
needs: [automated-ui-tests]
steps:
- name: Checkout code
uses: actions/[email protected]
Expand Down Expand Up @@ -125,38 +124,38 @@ jobs:
CONTAINER_APP_URL: ${{ env.CONTAINER_APP_URL }}
ARTIFACT_ID: ${{ env.ARTIFACT_ID }}

automated-ui-tests:
permissions:
actions: read
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
issues: write
runs-on: ubuntu-latest
environment: STAGE
steps:
- name: Checkout code
uses: actions/[email protected]

- name: Set environment variables
run: |
export SA_PASSWORD='YourStrong!Passw0rd'
export ConnectionStrings__RazorPagesMovieContext='Server=sqlserver,1433;Database=RazorPagesMovieContext;User ID=sa;Password=YourStrong!Passw0rd;'
export ASPNETCORE_URLS="http://0.0.0.0:5000"
export TAG="132"
- name: Run Docker Compose
run: docker compose up -d --build webapp

- name: Run UI acceptance tests
run: |
echo -e "\033[0;32mdotnet clean RazorPagesMovie.UITests/RazorPagesMovie.UITests.csproj\033[0m"
dotnet restore RazorPagesMovie.UITests/RazorPagesMovie.UITests.csproj
echo -e "\033[0;32mWaiting for the web application to start...\033[0m"
sleep 20
echo -e "\033[0;32mdotnet test RazorPagesMovie.UITests/RazorPagesMovie.UITests.csproj --logger \"console;verbosity=detailed\"\033[0m"
dotnet test RazorPagesMovie.UITests/RazorPagesMovie.UITests.csproj --logger "console;verbosity=detailed"
# automated-ui-tests:
# permissions:
# actions: read
# id-token: write # This is required for requesting the JWT
# contents: read # This is required for actions/checkout
# issues: write
# runs-on: ubuntu-latest
# environment: STAGE
# steps:
# - name: Checkout code
# uses: actions/[email protected]

# - name: Set environment variables
# run: |
# export SA_PASSWORD='YourStrong!Passw0rd'
# export ConnectionStrings__RazorPagesMovieContext='Server=sqlserver,1433;Database=RazorPagesMovieContext;User ID=sa;Password=YourStrong!Passw0rd;'
# export ASPNETCORE_URLS="http://0.0.0.0:5000"
# export TAG="132"

# - name: Run Docker Compose
# run: docker compose up -d --build webapp

# - name: Run UI acceptance tests
# run: |
# echo -e "\033[0;32mdotnet clean RazorPagesMovie.UITests/RazorPagesMovie.UITests.csproj\033[0m"
# dotnet restore RazorPagesMovie.UITests/RazorPagesMovie.UITests.csproj

# echo -e "\033[0;32mWaiting for the web application to start...\033[0m"
# sleep 20

# echo -e "\033[0;32mdotnet test RazorPagesMovie.UITests/RazorPagesMovie.UITests.csproj --logger \"console;verbosity=detailed\"\033[0m"
# dotnet test RazorPagesMovie.UITests/RazorPagesMovie.UITests.csproj --logger "console;verbosity=detailed"

production:
permissions:
Expand Down

0 comments on commit ec14283

Please sign in to comment.