Skip to content

Commit

Permalink
feat: add playground workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Sep 7, 2024
1 parent 6cc3fcd commit 85ade94
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Playground

on:
pull_request:

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

jobs:
playground:
runs-on: ubuntu-latest
timeout-minutes: 10
name: Check Playground

steps:
- name: Set node version to 22
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 22
cache: 'pnpm'

- name: Install pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
path: faker

- run: pnpm install && pnpm build
working-directory: faker
env:
CYPRESS_INSTALL_BINARY: 0

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: fakerjs/playground
path: faker-playground

- run: |
pnpm install
pnpm -r --workspace-concurrency 1 test
working-directory: faker-playground

0 comments on commit 85ade94

Please sign in to comment.