Update automated-tests.yml for automated testing #30
This file contains hidden or 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
| 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 |