Skip to content

Commit

Permalink
chore: test default pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Feb 27, 2024
1 parent c06972e commit 286f558
Showing 1 changed file with 11 additions and 44 deletions.
55 changes: 11 additions & 44 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,24 @@ on:
push:
branches-ignore:
- main
jobs:
sherif:
name: Monorepo Sherif
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

- name: Run sherif
run: pnpm dlx sherif@latest

jobs:
tests:
name: Tests
name: Playwright Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Install Node.js
uses: actions/setup-node@v4
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build package
run: pnpm run build:package

- name: Install Playwright browsers
run: pnpm dlx playwright install --with-deps

- name: Run tests
run: pnpm test

node-version: 16
- run: npm install -g pnpm@5.3
- run: pnpm install
- run: pnpm build
- run: npx playwright install --with-deps
- run: pnpm test || exit 1
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playground/playwright-report/
path: playwright-report/
retention-days: 30

0 comments on commit 286f558

Please sign in to comment.