Update podcast-web.yml
parent
078fd0eaaf
commit
439b103e6c
|
@ -7,12 +7,6 @@ on:
|
|||
- "src/Web/**"
|
||||
- ".github/workflows/podcast-web.yml"
|
||||
- "deploy/Web/web.deployment.json"
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "src/Web/**"
|
||||
- ".github/workflows/podcast-web.yml"
|
||||
- "deploy/Web/web.deployment.json"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
|
@ -77,7 +71,6 @@ jobs:
|
|||
needs: build
|
||||
environment:
|
||||
name: prod
|
||||
if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -120,40 +113,3 @@ jobs:
|
|||
with:
|
||||
app-name: ${{ secrets.WEBAPP_NAME }}
|
||||
package: web
|
||||
|
||||
test:
|
||||
needs: deploy
|
||||
timeout-minutes: 60
|
||||
runs-on: ubuntu-latest
|
||||
container: mcr.microsoft.com/playwright:v1.25.2-focal
|
||||
env:
|
||||
BASEURL: https://${{secrets.WEBAPP_NAME}}.azurewebsites.net # sets value for URL to test
|
||||
defaults:
|
||||
run:
|
||||
working-directory: src/Web/E2E
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "14.x"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run Playwright tests
|
||||
run: |
|
||||
HOME=/root npx playwright test
|
||||
|
||||
- name: Create test summary
|
||||
uses: test-summary/action@dist
|
||||
if: always()
|
||||
with:
|
||||
paths: src/Web/E2E/test-results/junit.xml
|
||||
|
||||
- name: Upload HTML report
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: playwright-report
|
||||
path: src/Web/E2E/playwright-report/
|
||||
retention-days: 30
|
||||
|
|
Loading…
Reference in New Issue