Skip to content

Commit

Permalink
add running ui tests in pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
polinadrumeva committed Jan 9, 2024
1 parent ba5c2d4 commit 51b34cd
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: Build Project
name: Build, Tests and Deploy Titanic Story - Project

on:
push:
Expand All @@ -10,7 +10,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
Expand All @@ -26,8 +25,25 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to production
- name: Deploy application to production
uses: johnbeynon/render-deploy-action@v0.0.8
with:
service-id: ${{ secrets.MY_RENDER_SERVICE_ID }}
api-key: ${{ secrets.MY_RENDER_API_KEY }}

runs-ui-tests:
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- name: Install dependencies for application
run: npm install
- name: Install Playwright
run: npx playwright install
- name: Run UI tests
run: npm run test:ui

0 comments on commit 51b34cd

Please sign in to comment.