Skip to content

Commit

Permalink
chore(ci): simplify GitHub Actions workflow by removing redundant ste…
Browse files Browse the repository at this point in the history
…ps and updating Node.js action version
  • Loading branch information
MoinJulian committed Nov 21, 2024
1 parent ffbc27d commit ab5606a
Showing 1 changed file with 2 additions and 35 deletions.
37 changes: 2 additions & 35 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,8 @@ jobs:
timeout-minutes: 10
runs-on: ubuntu-latest

env:
SECRET_MONGODB_CONNECTION_STRING: ${{ secrets.SECRET_MONGODB_CONNECTION_STRING }}
PUBLIC_YOUR_DOMAIN: ${{ secrets.PUBLIC_YOUR_DOMAIN }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Cache node modules and Playwright browsers
id: cache-node-modules-and-playwright-browsers
uses: actions/cache@v4
with:
path: dependencies
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- uses: actions/checkout@v2

- name: Install dependencies
if: steps.cache-node-modules-and-playwright-browsers.outputs.cache-hit != 'true'
run: npm ci

- name: Install Playwright browsers
if: steps.cache-node-modules-and-playwright-browsers.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium

- name: Test Playwright API
run: npx playwright test --project="Google Chrome"

- name: Upload Playwright Report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 7
run: npm install

0 comments on commit ab5606a

Please sign in to comment.