Skip to content

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the dev branch
on:
push:
branches: [dev, master, feat/**, ci/test, test/**]
pull_request:
branches: [dev, master]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ubuntu-latest
name: "Lint"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
.eslintcache
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Set node version
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Lint
run: pnpm lint
deploy-doc:
if: ${{ contains(github.actor, 'zhangyuang') && github.ref_name == 'dev' && contains(github.event.head_commit.message, '.md')}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Check out my other private repo
uses: actions/checkout@master
with:
repository: zhangyuang/v8-profiler-rs
path: v8-profiler-rs
ref: public
- run: cp ./v8-profiler-rs/README.md ./docs/web/markdown/features/memory.md
- run: cd docs && yarn && npm run deploy
env:
SERVERLESS_DEPLOY_AK: ${{ secrets.SERVERLESS_DEPLOY_AK }}
SERVERLESS_DEPLOY_ENDPOINT: ${{ secrets.SERVERLESS_DEPLOY_ENDPOINT }}
SERVERLESS_DEPLOY_ID: ${{ secrets.SERVERLESS_DEPLOY_ID }}
SERVERLESS_DEPLOY_SECRET: ${{ secrets.SERVERLESS_DEPLOY_SECRET }}
SERVERLESS_DEPLOY_TIMEOUT: ${{ secrets.SERVERLESS_DEPLOY_TIMEOUT }}
e2e-chrome-midway-react:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
/Users/runner/.cache
/Users/runner/Library/Caches/Cypress
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: /Users/runner/Library/Caches/Cypress
with:
install: false
start: pnpm example:midway:react
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/react-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-react-prod:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
with:
install: false
start: pnpm example:nestjs:react:prod
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/react-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-react18-prod:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
with:
install: false
start: pnpm example:nestjs:react18:prod
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/react18-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-react-prod-vite:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["18"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: C:\Users\runneradmin\AppData\Local\Cypress\Cache
with:
install: false
start: pnpm example:nestjs:react:prod:vite
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/react-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-react18-prod-vite:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: C:\Users\runneradmin\AppData\Local\Cypress\Cache
with:
install: false
start: pnpm example:nestjs:react18:prod:vite
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/react18-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-vue3-prod-vite:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["18"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
C:\Users\runneradmin\.cache
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: C:\Users\runneradmin\AppData\Local\Cypress\Cache
with:
install: false
start: pnpm example:nestjs:vue3:prod:vite
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/vue3-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-vue-prod:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["18"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: C:\Users\runneradmin\AppData\Local\Cypress\Cache
with:
install: false
start: pnpm example:nestjs:vue:prod
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/vue-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-vue3-prod:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["18"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
with:
install: false
start: pnpm example:nestjs:vue3:prod
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/vue-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-vue3-prod-optimize:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: C:\Users\runneradmin\AppData\Local\Cypress\Cache
with:
install: false
start: pnpm example:nestjs:vue3:prod:optimize
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/vue-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-react-prod-optimize:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: C:\Users\runneradmin\AppData\Local\Cypress\Cache
with:
install: false
start: pnpm example:nestjs:react:prod:optimize
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/react-ssr.spec.js
browser: chrome
e2e-chrome-midway-react-vite:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
/Users/runner/Library/Caches/Cypress
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: /Users/runner/Library/Caches/Cypress
with:
install: false
start: pnpm example:midway:react:vite
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
browser: chrome
e2e-chrome-midway-vue3-vite:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
/Users/runner/Library/Caches/Cypress
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: /Users/runner/Library/Caches/Cypress
with:
install: false
start: pnpm example:midway:vue3:vite
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-react18-vite:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
/Users/runner/Library/Caches/Cypress
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: /Users/runner/Library/Caches/Cypress
with:
install: false
start: pnpm example:nestjs:react18:vite
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/react18-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-vue3-pinia:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
/Users/runner/Library/Caches/Cypress
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: /Users/runner/Library/Caches/Cypress
with:
install: false
start: pnpm example:nestjs:vue3:pinia
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/vue-ssr.spec.js
browser: chrome
e2e-chrome-midway-vue3:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
/Users/runner/Library/Caches/Cypress
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: /Users/runner/Library/Caches/Cypress
with:
install: false
start: pnpm example:midway:vue3
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/vue-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-vue:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["18"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: C:\Users\runneradmin\AppData\Local\Cypress\Cache
with:
install: false
start: pnpm example:nestjs:vue
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/vue-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-react18:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
# env:
# CYPRESS_CACHE_FOLDER: C:\Users\runneradmin\AppData\Local\Cypress\Cache
with:
install: false
start: pnpm example:nestjs:react18
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/react18-ssr.spec.js
browser: chrome
e2e-chrome-nestjs-vue3:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, '.md')}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- uses: cypress-io/github-action@v2
with:
install: false
start: pnpm example:nestjs:vue3
wait-on: 'http://localhost:3000'
spec: |
e2e/integration/examples/common-ssr.spec.js
e2e/integration/examples/vue-ssr.spec.js
browser: chrome
env:
ssrConfig: '{"whiteList":["ssr-common-utils"]}'
publish:
name: Publish
if: "startsWith(github.event.head_commit.message, 'release')"
runs-on: ubuntu-latest
needs:
- lint
- e2e-chrome-midway-react
- e2e-chrome-midway-react-vite
- e2e-chrome-midway-vue3
- e2e-chrome-midway-vue3-vite
- e2e-chrome-nestjs-react-prod
- e2e-chrome-nestjs-react-prod-vite
- e2e-chrome-nestjs-vue-prod
- e2e-chrome-nestjs-vue3-prod
- e2e-chrome-nestjs-vue3-prod-vite
- e2e-chrome-nestjs-vue
- e2e-chrome-nestjs-vue3
- e2e-chrome-nestjs-react18
- e2e-chrome-nestjs-react18-prod
- e2e-chrome-nestjs-react18-prod-vite
- e2e-chrome-nestjs-vue3-pinia
- e2e-chrome-nestjs-react-prod-optimize
- e2e-chrome-nestjs-vue3-prod-optimize
- e2e-chrome-nestjs-react18-vite
strategy:
matrix:
node: ["16"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: |
.turbo
~/.cache/Cypress
~/.pnpm-store
~/Library/pnpm/store
~/AppData/Local/pnpm/store
key: ${{ runner.os }}-v1.0.0-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v1.0.0-
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm i --no-frozen-lockfile
- name: Build packages
run: |
pnpm build
- name: List packages
run: ls -R packages
shell: bash
- name: npm publish
run: |
find ./packages/ -type d -maxdepth 1 -exec cp LICENSE {} \;
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
pnpm run ci-publish -- ${{ github.event.head_commit.message }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}