Skip to content

Update automated-tests.yml for automated testing #30

Update automated-tests.yml for automated testing

Update automated-tests.yml for automated testing #30

name: Run Automated Tests
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Adjust the Node.js version to match your project
- name: Install dependencies
run: |
npm install
working-directory: ./path/to/your/project # Adjust this path to the correct project folder containing package.json
- name: Run Playwright tests
run: |
npx playwright test
working-directory: ./path/to/your/project # Ensure Playwright runs in the correct directory