Skip to content

Commit

Permalink
pls work
Browse files Browse the repository at this point in the history
  • Loading branch information
gtm-nayan committed Jun 9, 2023
1 parent 0c6f172 commit 6424123
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/ci.yml
@@ -1,15 +1,11 @@
name: CI
on:
push:
branches: [ master ]
branches: [master]
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)

env:
# We only install Chromium manually
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'

jobs:
Tests:
runs-on: ${{ matrix.os }}
Expand All @@ -28,14 +24,9 @@ jobs:
- node-version: 20
os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3
- uses: ./.github/workflows/setup.yml
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm playwright install chromium
- run: pnpm test
env:
CI: true
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/release.yml
Expand Up @@ -16,19 +16,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- uses: pnpm/action-setup@v2.2.4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm

- run: pnpm install --frozen-lockfile
- uses: ./.github/workflows/setup.yml

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/setup.yml
@@ -0,0 +1,24 @@
on:
workflow-call:
inputs:
node-version:
description: 'Node.js version'
required: false
default: 18

permissions:
contents: read # to fetch code (actions/checkout)

env:
# We only install Chromium manually
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'

jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3
with:
node-version: ${{ github.event.inputs.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm playwright install chromium

0 comments on commit 6424123

Please sign in to comment.