Skip to content

ci(shared): enable github actions #8

ci(shared): enable github actions

ci(shared): enable github actions #8

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build cli
run: pnpm build --filter=cli
- name: Install cli binary
run: pnpm install
- name: Build
run: pnpm build
- name: Install Playwright Browsers
run: pnpx playwright install --with-deps
- name: Test
run: pnpm test