Skip to content

Update Tests

Update Tests #21

Workflow file for this run

name: Update Tests
on:
workflow_dispatch:
inputs:
input_branch:
description: 'Branch To Checkout'
required: false
default: 'master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
with:
ref: '${{ inputs.input_branch }}'
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
run_install: true
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v2
with:
path: node_modules/.cache/turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-
- name: build
run: |
pnpm run compile
env:
CI: true
# visual e2e test
- name: Percy Test
run: |
cd demo
pnpm run build
pnpm run ci:visual
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- name: Bundle size report
uses: nejcm/[email protected]
with:
paths: 'packages/pintora-standalone/lib/**/*'