-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CD workflow: comment out automated UI tests section
- Loading branch information
Showing
1 changed file
with
32 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,6 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
environment: STAGE | ||
needs: [automated-ui-tests] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
@@ -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: | ||
|